The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.

learn more… | top users | synonyms (3)

2
votes
1answer
5k views

How to set a lookup field by c# code

I have a list in SharePoint and it contains a lookup field. Now I want to insert an item to this list, but don't know how to work with the lookup field. I tried the following code but no item is ...
11
votes
2answers
1k views

“Best Practices” for SharePoint customizations/development to easily migrate to new SharePoint versions

Do you know of any documents that describe “best practices” for SharePoint customizations (especially custom developments) in order for these customizations/code (for example web parts, event ...
0
votes
1answer
98 views

Custom form with link to document

I have a custom form. In it I need to add a link to a document library. I need that this links works in the same way as a link in a document library (i.e. - when you click on it you have the option to ...
1
vote
1answer
175 views

Cannot complete this action creating view programatically

I am trying to create a view programatically to be used in an XSLTViewWebPart. When I try to browse to the view I got this exception: Cannot complete this action. Please try again. I set the log to ...
0
votes
1answer
226 views

Programmatically adding a sequence number to the 'Title' column during item creation in SP List

As per the title above, I have a list that stores IT support requests. I need a sequence number that matches with the item ID and I want to add this sequence number to the Title of the request. I ...
1
vote
1answer
114 views

Custom Page inside SharePoint 2010

i am building a .aspx Terms & condition page for my Intranet with Save & Cancel buttons: When we click on Save the user save inside a list as he agree on the terms & Condition content ...
2
votes
2answers
2k views

Programmatically create a site collection in an existing, mounted content database

I'd like to create a site collection from a custom application page in central admin. The administrator needs the option to specify an existing, mounted content database to store the new site ...
0
votes
1answer
44 views

I set up in Sharepoint Create Elements, and edit elements only created by user

http://screencloud.net/v/2xVc But when manager Is created a element it's generate me error. How do If on development If i Can delete element? Please help. I have got this sort of code: for ...
0
votes
1answer
94 views

Change .aspx on a SPView

I'd like to create a SPView for my list that points to a complete custom aspx page. And I need to do that through c# code. Even if I could just override the AllItems.aspx in a Visual Project Project, ...
0
votes
1answer
349 views

I want to delete attachment and listitem but using this code it deletes all the listitems

private void DeleteFromSharePointList(HyperLink hp) { SPWeb web = SPContext.Current.Web; web.AllowUnsafeUpdates = false; SPList myList = web.Lists["Document cv"]; ...
1
vote
1answer
1k views

Insert Hyperlinks in Custom Content Editor Web part SP 2010

I have a weird situation in content editor web part. entered text and made it as hyperlink - then went into second line to enter text and text still follows the hyperlink which was applied on the ...
0
votes
1answer
139 views

sharepoint sent email attachment don't having pdf format

code is developed to attach pdf and send as email. But email received dont contain the pdf format. On click of file, it gives option of "open with". mentioned is code used.... "attach1" is the path ...
0
votes
1answer
152 views

List with Page_Load event

For a project I'm working on, I'd like to get a Page_Load C# method behind a Document Library, but I've been unable to achieve this, so far. Any help would be greatly appreciated! Some details on ...
1
vote
2answers
400 views

create survey from code with rating scale

I'm creating a sharepoint survey with VS2012. I managed to create the survey with several question and here is some sample: SPWeb web = properties.GetWeb(); Guid id = ...
5
votes
3answers
2k views

SharePoint Web Serivces Access Denied; Only From VS 2010

After not getting much help on the last question, I decided to blow away the VM and re-create it as I already lost a week on this issue. And of course still issues, btu a little different. I am ...
1
vote
1answer
730 views

Is it possible to check if a document has unique permissions using SP2010 Client Object Model

I have a 2010 site that has many documents in many different folders. I believe a number of them have broken permission inheritence. Is there a way i can code a C# console app to utilise client object ...
0
votes
1answer
26 views

Fileupload cannot find file

When I click on upload button it says that my fileupload does not contain a file. Why that? Did I miss something in my code? //Add profilepic to SP list SPList ...
1
vote
1answer
197 views

Getting CultureInfo from Web.Language

I can get language code, e.g. "1033" for en-US by, using (SPSite site = new SPSite("https://portal.loonetoones.com/default.aspx")) using (SPWeb web = site.OpenWeb()) { ...
1
vote
2answers
295 views

Display the data in spgridview with several column in each row

I need to develop a webpart which takes data from list and populate in spgridview. The webpart should look like in the image atached. I am able to display the column 1 i.e one image for each row but ...
1
vote
1answer
409 views

How write a code to webpart which change the password to Acrive Directory

I want to write a webpart to change/reset a pasword to Active Directory. How Could I do it ? Where are the user password are situated ?
0
votes
2answers
96 views

WSS 3.0 Contributor Permissions can't delete folders

SPUtility.ValidateFormDigest(); SPSecurity.RunWithElevatedPrivileges(delegate() { SPSite siteColl = SPContext.Current.Site; ...
0
votes
1answer
207 views

Creating SPSiteCollection, top level site programmatically

I have been given a task to create an event that dynamically creates new site collections on our sharepoint webApp. Thing is using Central Admin I can create "http://testsite.com/sites/newSite_1" and ...
3
votes
4answers
498 views

SharePoint List / Library property bag

I'm working with sharepoint 2007 and i have a question, does a sharepoint library / list has something like property bag, where i could store some properties for the list? Like a SPWeb object. Or ...
0
votes
1answer
233 views

SPLongOperation break on error and stay on same page

I have a question regarding SPLongOperation. Basically i'm using it while some actions are happening, and if everything goes well it should redirect user to an other page, but if something goes wrong ...
0
votes
1answer
81 views

How to show what level of permission a group or user has to a site?

In SharePoint 2007 when you go to a site and view advanced permissions (Site Actions - Site Settings - Modify All Site Settings - Advanced Permissions) you are presented with a page that has a table ...
0
votes
2answers
53 views

Capture SharePoint role group and group members?

For our audit process I need to regularly capture all of our SharePoint role groups (for our main site collection) and the members in each group. Is there a reliable way to approach this problem?
1
vote
1answer
198 views

SharePoint, LINQ & Reporting Services Tools

I'm new to SP and SSRS, so I want to check if my thoughts are correct. Report Builder and BIDS suck on data retrieval so I have to go deeper using code. Is it possible to write some code in C# using ...
0
votes
1answer
421 views

file downloading in sharepoint

I've created a web-part. I've added few documents to it. I'm implementing download functionality. I want file download dialog. My code is like this. DownloadItem(SPListItem item) { // Get physical ...
1
vote
2answers
364 views

Will SharePoint developers still need asp.net webforms skills for 2013 and beyond?

Will asp.net webforms skills still be a requirement for SharePoint development down the road? Or will webforms become just one development technology out of many a SharePoint developer can choose ...
0
votes
1answer
635 views

How do I get C# code behind a Document Library?

As part of an internship assignment, I'm working with SharePoint 2013. I'm completely new to SharePoint in general. Part of this assignment is a labeling system. The idea is that users can add labels ...
2
votes
1answer
352 views

Changing Content Editor Programatically - Client model API?

Is it at all possible to make changes to or add a content editor to a page using only the Client Object Model API? There does not appear to be any reference to a ContentEditorWebPart dll.
2
votes
2answers
3k views

How to add content to Content Editor Webpart programatically?

So I have the standard Content Editor Webpart (MSContentEditor.dwp). The title i can set via webPart.Title (MSDN). I can't find any property where I would set the content editor's content. I ...
0
votes
2answers
987 views

Workflow Context always null

I am a newbie in the custom workflow development. The scenario I want to send an email notification to the group when an item is created in the list. I am referring to ...
0
votes
2answers
1k views

How to copy files from one document set to another document set

In a event receiver depending on some business rules, I need to copy the Document Set CONTENTS to another existing document set. However I cant find how to do it. I have the code that gets the ...
0
votes
1answer
60 views

SP2007 using Source token in link

In SharePoint 2007 in some occasions i see that when im redirected to some pages etc, i see a source in query string, and this i can use to be redirected back to the original page. I've read on msdn ...
0
votes
1answer
757 views

openfiledialog in webpart

How to implement openfile dialog in a webpart ? OpenFileDialog class could not be accessed in webpart. Is there any other way to achieve this ?
0
votes
1answer
49 views

Link to document library

I have a small issue, basically i have an instance of document library / list, now, how can i get a link to that list / document library? I'm working with sp 2007 To clarify, here is the code: ...
1
vote
1answer
198 views

MenuItemTemplate calling a method instead of URL

How can I add my method instead of URL of a website, I can see another option as "ClientOnClickScript" but not sure how exactly I can do it tho, here's my code public class MyUserControl: WebControl ...
2
votes
2answers
286 views

Can we avoid clunky hiding of WebParts?

It's a real drag and performance killer to have to load all the WebParts on a page and then laboriously hide and reveal all the ones relevant to user groups / permission levels. Especially when on the ...
0
votes
1answer
97 views

Blog Site in Anonymous Use in SharePoint 2010

Trying to setup anonymous access to a SharePoint 2010 blog following: http://www.sharepointblues.com/2010/12/22/blog-site-in-anonymous-use/ I am not sure what I am doing wrong but the source code is ...
0
votes
3answers
168 views

Get default WebApplication in a farm

I have a question about getting the default WebApplication in the farm - how do I do it? I need to, because my timer job must be completed only for one WebApplication. PS: I'm using SharePoint 2010
2
votes
4answers
127 views

In a site with two servers where can I expect to see my ULS log entry?

I'm using SPDiagnosticsService to write an entry to the ULS logs. On a load-balanced environment with 2 front-end servers I can't find the entries at all, but it works fine on my local dev environment ...
1
vote
1answer
27 views

Wrong skilltype in listbox

On page_load, in listBoxDatabase it shows both Programming skills and Database skill, i just want it to provide the "Database" skill. This is my table in SQL: This is my method that provides it ...
0
votes
1answer
306 views

System.UnauthorizedAccessException was unhandled by user code in simple code

I got this exception in very easy code and I have running with elevated privileges around it. private void ChangeVersioningOnDocumentLibrary(SPListItem item, SPItemEventProperties properties, SPSite ...
0
votes
3answers
744 views

Link to a document of shared document library

My specifications: Windows Server 2003 Visual Studio 2008 Windows Sharepoint Services 3.0 visual studio 2008 extension for Sharepoint services 3.0 I'm creating a web part with a SPGridView. I ...
2
votes
1answer
988 views

Remote Powershell: New-SPUser : Access is denied. (Exception from HRESULT: 0x80070005)

I am running a remote powershell script which attempts to setup a web-application and site collection and then attempts to add a user to that site collection. I receive the following error: ...
0
votes
1answer
55 views

Removing old content databases cleanly

I have created and deleted a web application without specifying to remove the content database. What is the cleanest way for me to delete the content database?
0
votes
1answer
40 views

About SPFolders & DocumentSets

I've been working in a feature for mi current project that involves folders. I've noticed that If you add files or subfolders to a folder and then you try to update the folder's metadata an exception ...
0
votes
1answer
179 views

Appropriate List permissions and read/write using visual webpart

I am learning SharePoint and just learned how to develop Visual Webparts and read data through CAML and write data also. I have a portal where I have one site collection and under that site collection ...
1
vote
0answers
420 views

Upload clickonce to sharepoint

I'm following this tutorial to upload a clickonce application to sharepoint. This is my Elements.xml: <?xml version="1.0" encoding="utf-8"?> <Elements ...