sharepoint

How to change the user attributes(with the necessary human) in ActiveDirectory from SharePoint 2010?

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...

SpGridView styling

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...

jQuery nested array

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...

SharePoint Designer DataView New Upload bound to Document Library - where did file go and can I set to a folder?

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...

Get UniqueId of a list item from SPMetal code

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,...

Only Alternating values in SPFieldMultiChoice saved

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...

How to show an indicator when an item has been added to a folder in a document library (SharePoint 2010)

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 ...

ASP:Upload control . Uploading into a SharePoint Document Library Subfolder and FILE NOT FOUND error

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"><ZoneTemplate> in object model

what is equivalent to allowlayoutchange="false" allowpersonalization="false" allowcustomization="false"> in object model ...

SharePoint - Find a reference to default.aspx from a site definition

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...

ITransformableFilterValues interface with two or more parameters [SharePoint WebParts]

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 (...

Inconsistent PDF URLs returned from SharePoint query web service

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=...

If I move a form with VSTA code-behind into Visual Studio, will end users require the VSTO runtime?

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 ...

Making your own cusctom workflow developed in visual studio 2010 available in sharepoint designer 2010

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...

Which is the best platform to develop an external corporate website - .Net or Sharepoint.

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? ...

Using ETL (non-MS) to get data from Infopath forms stored in Sharepoint 2007

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...

WSS 3.0 Cannot create list instance

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...

Creating a wrapper web part to host a user control in MOSS 2007

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...

How to get the task ID for generate of a hyperlink to a form of execution in a workflow

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...

Insert Link/Picture "From SharePoint" grayed out in the ribbon

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 ...