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
351 views

SPFile Update fails, Exists returns true

I have a block of code wrapped in an if: mySite.AllowUnsafeUpdates(); SPFile mySPFile = web.GetFile(someURL); if (mySPFile.Exists) /*returns true, enters code block*/ { //... make some updates ...
4
votes
3answers
3k views

How to add event receivers to all the lists in a site collection?

What is the best practice around adding event receivers across all the lists in a Site Collection?
1
vote
1answer
491 views

Adding HyperLinks + Richtext field values via SP2010 Web Services

I've written an app that reads data via the web services in order to help my data migration process from SharePoint 2007 to 2010. I've been successful for the most part. I've been able to bring the ...
1
vote
1answer
2k views

SP2010: Best Practices to use SPAudit

I would like to use the security audit log report of a site collection, and evaluate the entries e.g. each hour. The focuss lays on actions/events performed on the access rights on the site. Which ...
1
vote
1answer
557 views

Programatically update a webpart property doesn't get updated

I'm trying to programatically update the title of some webparts. To do this, I am getting all the pages from the site, getting the webparts for each page, and first print out the current title, change ...
2
votes
1answer
220 views

why updating formula, title in large list/library programmatically takes really long time

I have to update formula of calculated field. I wrote method for that, it is working fine and is updating formula as well. But it takes really long time to update formula in large library ie library ...
2
votes
0answers
462 views

Portal site connection node not showing in SiteMapPath breadcrumb

I have several site collections with portal site connections set pointing to a root site collection. In my custom master page i have added a SiteMapPath breadcrumb, based on the breadcrumb from the ...
0
votes
1answer
156 views

removing then setting custom permissions for a list

I have been looking around for few days, but couldn't really figure out, how I will be able to do this. what I am doing is removing all permissions of a given list using following code, using ...
0
votes
1answer
471 views

Creating a custom View for List with custom UI

I'm trying to create a custom view for a list with custom UI. The following is my code: list.Views.Add("List View", coll, Query, 10, true, false); list.Update(); SPView view = list.Views["List ...
2
votes
4answers
2k views

How to invoke server side code from Ribbon

I want to create a Button in my Ribbon which modifies some fields in my items.. In details I want to select more than one element and select my "link" button and make the elements be "linked" by an ...
0
votes
1answer
292 views

Publishing site: Why are my pages blank but having webparts and controls in editing mode?

Started to look into Publishing site pages. I have a few pages of a publisihing site filled with web parts and controls in editor that I fail to see. They are saved, checked in and published (few ...
0
votes
2answers
2k views

How to revert accidental page unghosting?

How can I resore ghosting of a page back if I accidentally unghosted it? Will its deleting and recreating restore ghosting and remove copy of changed page from database? Update: Searched for ...
0
votes
1answer
3k views

SPD 2010: How to use advanced and normal mode of editing?

In SharePoint Designer 2010, when I create a new aspx page (Site --> Righ-click on blank in the right pane --> New --> ASPX) and then open it for editing, I am getting: "This page does not contain ...
0
votes
1answer
105 views

Automatically add a folder (document set) by code (generating the name also by code, without the user inputting the name)

I want to know if it’s possible to write en Event Receiver in VB for automating the creation of a document set: the user only click “new document set” and then the code generates the document set with ...
1
vote
2answers
383 views

Limiting List Permissions Programmatically

Scenario: When a User (let say Controller 1) creates a site using a site definition, "which already has a Custom List definition in it and different other things(like lists, webparts)" Custom List: ...
0
votes
1answer
61 views

Limiting a List (Listview webpart) to a single User

I have a List Definition and I want to limit only 1 specific user to "add new items" to this list, oh by the way its a custom list definition, I was wondering what are the possible ways to accomplish ...
0
votes
2answers
3k views

What is hidden webpart for in SP2010?

Follow-up questions to Closed vs. Hidden Web Part - what is the difference? : What are possible uses of hiding a web part (having closing) in Sharepoint 2010? why isn't unhiding a webpart in a ...
6
votes
2answers
1k views

What is the best practice for securely storing a connection string in SharePoint?

I'm writing an application page in SharePoint and I want to securely store the connection string. I've used a variety of methods before but they all seem a little "suspect". What is the recommended ...
2
votes
4answers
1k views

Detecting Registered Scripts on Page - ScriptLink or anything else!

I have a webpart that requires jQuery to run. Therefore, in my code I want to check if jQuery is not on the page inject it. I've got down the inject part, but the detection part it where I'm ...
0
votes
1answer
775 views

SPWebApplication is null in Feature Reciever

in this code variable _service is null. Any idea what's wrong? It was working before without any problems... private SPWebApplication _service; ... _service = properties.Feature.Parent as ...
2
votes
1answer
764 views

Ways to get data from Sharepoint out of sharepoint environment

My question is Can someone tell me the possible ways, I can get data from a sharepoint 2007 list, which is secured with SSL/Https for a Windows 7 gadget(uses HTML/Java Script), (I asked my senior ...
0
votes
2answers
212 views

Any method or way to bypass an automatically starting workflow?

I have a solution in C# where users are able to submit a lengthy form, which then automatically kicks off a workflow that was created in Designer. However, I am looking to add functionality to the ...
1
vote
2answers
886 views

Is it possible to change the visual style of a JSGrid row?

I am working on a SharePoint solution using the SharePoint JS Grid control to display data. What I'd like to do is to change the default style (mainly background color) of specific rows in the grid to ...
2
votes
2answers
1k views

FileNotFoundException from a Visual Web Part using an external class library

I have a solution and two projects in it: VisualWebPart and ProjectsLibrary VisualWebPart has a reference to ProjectsLibrary (tried to change Property for ProjectsLibrary Copy Local to false/true , ...
0
votes
1answer
174 views

Sharepoint 2007 Windows Gadget [closed]

I am trying to develop a Gadget for Sharepoint 2007, which will authenticate a user and then fetch him a sharepoint list from a specific URL, For the last 4 days I have been working on it and came ...
0
votes
2answers
863 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 ...
1
vote
1answer
549 views

getting SPList data using HttpWebRequest

I want to get SPlist data using HTTPWebRequest but not sure how can i do it, here's the code I made until now, // Create a web request to get the xml feed HttpWebRequest ...
0
votes
1answer
444 views

Creating a Windows Gadget that gets populated from a Sharepoint List

I am trying to create a Windows Gadget for a Intranet site with hundred of sites & different groups with different permissions. The intranet site is secured with SSL/https, I looked at google ...
7
votes
5answers
10k views

In which situation use SPSecurity.RunWithElevatedPrivileges with superusertoken?

i have given permission only read only to Users Group.so there are not access to see listitem or any list. i have create application page with SPGridview with bind listitem. this page access by this ...
3
votes
1answer
795 views

SharePoint 2010: Set a fixed upload location

When using Announcements or Discussion forms it's possible to upload a document when entering data into the body field. (The editing tools are available and when clicking on the insert tab the Upload ...
0
votes
1answer
960 views

How to Create a List using a list template in a site definition

I have created a custom list definition which simplies creates a new list using "Document Library" list. I created another Custom Document Library and was wondering if there is any way I can create ...
1
vote
1answer
395 views

Dispose issue when working with content types

I am seeing an issue with un-disposed SPRequest objects in the ULS logs when i work with content types in the object model. My code is as follows (in previous methods run as part of this request, the ...
0
votes
2answers
96 views

c# and JavaScript

So i have this code sb.AppendLine( "var nameSplit = users[i].split('\');"); The sb.AppendLine is C# and the bit inside is JavaScript, I am trying to split users[i] so that I can strip out the ...
1
vote
2answers
959 views

SharePoint 2010 - Best practices: how to handle assemblies [Discussion]

There is a discussion which has been going on for serveral years when programming for SharePoint. In Visual Studio you can add a SharePoint solution, which will be converted to a .wsp file to deploy. ...
1
vote
2answers
62 views

Where to put a dev-only value?

I'm using Ninject in a SharePoint feature. I've got it working via an HttpModule. I need to tell Ninject whether I want to use my real or "fake" implementations. I'm thinking about using a ...
4
votes
2answers
5k views

How do I change the Title column of a list programmatically?

The twist to this question is that I am using a localized site - the site is using the Norwegian Team Site template. Hence, the Title column is actually named "Tittel". Presumably, the following ...
1
vote
4answers
3k views

How to add multiple values to a list item

I have two lists named 'Programs' and 'Projects'. I need to be able to add multiple Projects under each Program. Each of these Projects should be a list item in the 'Projects' list. Please help me on ...
2
votes
3answers
3k views

Location of Microsoft.Office.Server.UserProfiles.dll

I am working on a Feature in C# in VS2010 for a Sharepoint 2010 site. The business logic requires working with user accounts, so we are using UserProfile and UserProfileManager. Theoretically (I ...
0
votes
2answers
548 views

How to Display a treeview Control in a webpart Or Alternatives

Hi I developed a TreeView that listing groups and users in them, but for some reason I cant find the best way even googled it, here's the Code protected override void CreateChildControls() { ...
0
votes
1answer
529 views

Listing all the Users/Group, there Type, UserName, and Permissions

Trying to find a C# script that will list me all the groups of Current Web for sake of webpart that will show users the groups and users having permission to a specific web. I know I can get all the ...
0
votes
6answers
444 views

What is the Best Way to Set Up a Development Server for Sharepoint?

Let me qualify my question with these points: There is only one developer. The developer is the server administrator. The production server is Windows 2008, iis7.5, Sharepoint 2010 Enterprise, and ...
0
votes
2answers
948 views

CAML query returning everything?

I am busy messing around with lists and CAML queries: SPQuery query = new SPQuery(); SPList list; SPListItemCollection collection; query = new SPQuery(); query.Query = ...
7
votes
4answers
918 views

What are the dangers of using a static class that contains your SPWeb object?

When creating my SharePoint 2010 solutions, I often create a static class that contains helper methods and lists, documents, list items, etc that I use frequently. What would the dangers of putting my ...
2
votes
4answers
3k views

Custom Timer Job/Solution Deployment Problems

I have a single solution that consists of the following: Custom Timer Job (WebApplication scoped) Custom Content Type and List (Web scoped) Custom Logging Area (Web scoped) These features are set ...
1
vote
2answers
683 views

Deploying custom webservices

I am working on an old project, not currently used, that I pulled from our source backups. I have experience as a Sharepoint user but this is the first time I have been developing for or ...
0
votes
2answers
191 views

How to Refresh Web Service Value

I have an InfoPath 2010 form that is pulling data from a web service. For example, I have a text box, a button, and a drop down list. The button submits the text box value to the web service. The ...
1
vote
2answers
218 views

Installing a custom webservice

I am trying to install some (old) bespoke software which contains Sharepoint webservices. Unfortunatly I don't have the documentation for this software, if there ever was any. I have been reading up ...
1
vote
4answers
147 views

SharePoint Development Sever Yes\No

My department head is insistent on having a Development and Production Server for our SharePoint sites. After speaking with some other professionals and working with the technology for several months, ...
0
votes
2answers
76 views

Access title-element

I've created a contentype that inherits from the item contenttype. So the contenttype automaticaly has the field: Title. But how access this field (I want to add some custom validation and define if ...
0
votes
1answer
164 views

Leaving Content Type behind on solution retraction?

At first, I'm wondering if this would be a good idea, at all... However, I have a project (http://sharepointadlds.codeplex.com) that creates two Content Types as well as two Lists in Central ...