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

learn more… | top users | synonyms (3)

0
votes
1answer
317 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
256 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 ...
1
vote
3answers
5k views

Delete Item in Document Library using Client Object Model?

I have custom Database, this Database having SharePoint Item URL like(http://yoursite.com/Shared Documents/a.pdf), so my challenge to remove this file from sharepoint Library using Client Object ...
2
votes
1answer
1k views

In a SharePoint List I cannot see items that are in a folder

I have a sharepoint list (Not Library), where I am programmatically adding in a folder: SPList list = web.Lists[ListID]; SPFolder parent = list.RootFolder; SPFolder child = ...
0
votes
2answers
359 views

Custom action with javascript doesn't navigate in DisplayForm

I have a strange issue, basically, I have the following custom action: <CustomAction Id="Navigate.DisplayMenu" Title="Navigate to:" RegistrationType="ContentType" ...
1
vote
1answer
129 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 ...
1
vote
2answers
360 views

Auto sign in OWA web part using c# in sharepoint 2010

I need the OWA web part to automatically login the current user. How to do so using C#
0
votes
1answer
46 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 ...
-1
votes
2answers
43 views

Timer job fails while trying to data [closed]

I'm fetching data from a excel file and creating sharepoint groups for each entry. There are around 10000 entries for which i need to create sharepoint groups I created a SharePoint custom timer job ...
3
votes
1answer
9k 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 ...
0
votes
1answer
121 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, ...
3
votes
1answer
2k views

Customizing discussions list in SP2013 with JsLink

I'm working on a community site and was looking at ways to modify UI of the discussion list that is presented to the user (and possibly more going forward). It is my understanding according to the ...
0
votes
1answer
661 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
797 views

how to add multiple attachments to only one ListItem

This code creates a new listitem for every attachment but i only want to create 1 listitem and add all attachments to it SPList myEmployeeDocList = web.Lists.TryGetList("Document cv"); if ...
1
vote
1answer
1k views

Modifying List View in C# Doesn't Work?

I am trying to modify a view for a list in a Feature Event Receiver. The list is created in the same function; and the columns all added to it. When I look in the List Settings via the web interface, ...
1
vote
4answers
4k views

Collection was modified; enumeration operation may not execute.

I have made it work to delete attachment but can not delete listitem Error: Collection was modified; enumeration operation may not execute. private void DeleteFromSharePointList(HyperLink hp) { ...
1
vote
1answer
3k 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
164 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
207 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
559 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 = ...
2
votes
1answer
555 views

How to programmatically access and manipulate Discussion item and replies?

How to access and manipulate Discussion item and replies? I have a discussion board that has a check box, based on the input I switch the permissions of that discussion post for a specific user (from ...
2
votes
1answer
804 views

What are the current options for a Sharepoint Online trial from Windows XP?

A year ago I had 30-day trial for Office 365 (Sharepoint Online 2010). Everything worked fine from my Windows XP SP3 (x86. 32-bit) for development from Infopath Developer and Sharepoint Designer ...
0
votes
2answers
2k views

How to open a file using Item Id in SharePoint document library?

I am working on SharePoint Foundation 2010. I want to open file from a link. I found a solution "Link To Document" content type. But in "Link To Document" content type we need filename of original ...
0
votes
1answer
30 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
296 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()) { ...
2
votes
1answer
1k 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
2answers
72 views

Custom action with custom code doesn't work properly

I have an action in my document library, but it doesn't work as it supposed. So I have here definition of my custom action: <CustomAction Id="MyProject.Google" Title="Go to google" ...
1
vote
1answer
545 views

Listbox in webpart has no selection

I'm having a problem that's really blowing my mind right now, because it seems like some basic .net functionality isn't working properly. No doubt I'm missing something really obvious. I could really ...
0
votes
2answers
1k views

how to made new post for sharepoint newsfeed webpart through custom webpart

i have a requirement to made new post through custom web part and this must be shown on sharepoint 2013 news feed web part i am new with share point after the lot of googleing find a list of news ...
1
vote
1answer
637 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
101 views

WSS 3.0 Contributor Permissions can't delete folders

SPUtility.ValidateFormDigest(); SPSecurity.RunWithElevatedPrivileges(delegate() { SPSite siteColl = SPContext.Current.Site; ...
0
votes
1answer
313 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
663 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
322 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
97 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
57 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
2answers
3k views

Programmatically altering approval workflow task in separate workflow

Here is my code to programmatically alter the task at hand, the only problem is that the code doesn't alter the "Outcome" of the approval task. The Outcome field is blank. "Task Status" is Complete, ...
1
vote
1answer
274 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
644 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
458 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 ...
11
votes
2answers
2k 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
763 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 ...
0
votes
2answers
109 views

Sharepoint Development Process Best Practices

I would like to ask some simple questions regarding the best practices of Sharepoint 2010 development process. 1) I am supposed to maintain and add new sites to an already installed Sharepoint site. ...
0
votes
2answers
2k 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
96 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 ...
6
votes
4answers
41k views

Server Error in '/' Application. Runtime Error

I am new to SharePoint. I am developing a web part. I that I have created the .aspx page. When I am going to access that page by the URL it throws an error like. Runtime Error Description: An ...
0
votes
1answer
57 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: ...
0
votes
1answer
1k 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
1k views

Fetch data from Term Store Management in Sharepoint 2013

So I am wanting 3 different navigations and I only see how to add 2 though in the snippet area in Design Manager. I am comfortable with C# but not very knowledgable in Sharepoint. Does anyone know ...
2
votes
2answers
347 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 ...