To retrieve data from ActiveDirectory I used the following code:
SPSecurity.RunWithElevatedPrivileges(delegate()
(
var currentDirectory = new DirectoryEntry(domainAddress);
));
But changing a property's value and attempt to update the values in ActiveDirectory (function CommitChanges()) generates System.UnauthorizedAccess...
Hi
I am having a small issue. I am creating a SPGridView on the fly within a web part and adding it to the web part with some data in it. This works fine. I have now decided to rey make it look a little funky!!
However i cannot seem to get my cssclass property to work.
I have a class in the css file
.SPGridviewsCSS th
{
background...
Afternoon,
I have set up the following, the nested ifs are working however when i'd like to be able to pass the title of the array to the alterFields() function, that way the function will cycle through each field stored in the array and apply the CSS class relative to that array (i.e. I have applied the same name to the array as the c...
I have a Dataview bound to Document Library with the New Document button enabled.
It apears to upload but can't find the files anywhere. I don't have a Shared Document folder.
How and where do you set where to upload the file? A specific folder would be nice and If I could make it dynamic tied to QueryString that would be ideal.
Going...
Hello people,
Quick question. I want to generate code with SPMetal that includes the UniqueId field (the field that has the GUID for the list item), but somehow in Visual Studio I end up with either:
A list without that field
A list that in theory has that field (UniqueIdUniqueId.. why is it named that way?), but when I try to run it,...
Hi All,
I am busy building a custom webpart with various textboxes and lookup fields. All of them are saving correctly apart from the lookup fields that allows for multiple selections. I dont have this problem with lookup fields that only allow for one value to be selected.
Below is the code for getting all the selected items in my c...
I have a requirement to show some sort of indicator when an item has been added to a folder in a document library. At the item level, SharePoint has the "New" indicator. This does not seem available at the folder level. Is this true?
I tried to use the column "Modified", but this seems to be specific to the folder as well, rather than ...
RE: ASP:Upload control . Uploading into a SharePoint Document Library Subfolder and FILE NOT FOUND error
Two Issues, apparently unrelated.
I have subfolders like this /ApplicantDocuments/20 and /ApplicantDocuments/21 (where 20 and 21 are my subfolders and ApplicantDocuments is my library.
The below function is erroring with file not ...
what is equivalent to allowlayoutchange="false" allowpersonalization="false" allowcustomization="false"> in object model
...
Is there a way from within a feature to locate the default.aspx which is delivered with a custom site definition.
I have a scenario where I replace the default.aspx page with a custom page, but when the feature gets deactivated I need to put the original back in place.
I have considered moving the existing default.aspx to default-old.as...
I working with Sharepoint, and I try to connect web-parts with multiple parameters.
My question is how do I pass more than one parameter from a custome web part to another.
I am able to pass one parameter by implementing the ITransformableFilterValues interface in the custom webpart , what I want to do is pass more than one parameter (...
I'm searching a SharePoint server through web services. When the web services return Word/Excel/PowerPoint documents, they contain links to the actual files, e.g. http://server/site/mydoc.doc. When the web services return PDF documents, they contain links to pages that link to the PDF document, e.g. http://server/site/DispForm.aspx?ID=...
I have an existing InfoPath 2007 form that has some code-behind developed with VSTA. It has been deployed to SharePoint as an administrator-approved form but is not browser based - the InfoPath client opens when users fill in a new form.
I'd now like to follow How to: Migrate a Project Created in Visual Studio Tools for Applications to ...
Well my requirement is :
Need to develop a custom workflow,the workflow should take properties like site url, list names etc., From the client.
I am able to develop the workflow, but i need to make it available in designer. I tried the method mentioned here:
http://www.chaholl.com/archive/2010/03/13/make-a-custom-activity-available-to...
The website needs to be equipped with a content management system and should provide for social media integration and localization.
What are the pros and cons of each technology platform and when should we opt for sharepoint?
...
I'm looking at the architecture for a DW project and there will be the need for some manual collection of [structured] data eg the monthly accounting results from a country manager where they need to complete a form and fill in half a dozen values etc.
I really like the idea of using SP and InfoPath for this as it gives the security, th...
I have created three features - fields, content types and lists. I deployed the solution and everything was fine. However, I deleted my list instance from the Lists section in my site. Now I cannot create it again. I tried to deploy the solution again but no instance was created. How can that be done?
<ListInstance Id="2" Title="My Cont...
i am trying to set up a wrapper for a user control to be used in Moss 2007 but there is a problem that I can see my user control hosted in the web part but the cs file is not being executed so all the functions and activities in the page_load and other functions is being ignored. I have followed this article.
http://www.c-sharpcorner.c...
Hi all!
In the workflow must be periodically send reminders to users about the need to complete the task. To do this in the message body should form a link to the edit form type .../WfTasks/EditForm.aspx?ID=xxx. Where can I get this ID? Tried to do so:
executionTaskProperties.SendEmailNotification = true;
executionTaskProperties.Has...
In the ribbon, I want to insert a picture or a link into a content page, but the "From Sharepoint" button is grayed out and I can only upload an image or insert a link with from an address. My field is rich text.I'm using sharepoint 2010
What is going on?
Thx
...