Questions tagged [ssom]
SharePoint Server-Side Object Model
6
questions
7
votes
3answers
23k views
Get absolute URL to listitem's default display form
I need to have an absolute URL of a listitem's display form - currently I do it the following way:
On http://example.com/:
item.ParentList.ParentWeb.Url.TrimEnd('/') //"http://example.com"
+ "/"
+ ...
2
votes
2answers
2k views
How do I fetch the data from list present in root web of the root site collection?
We need to populate some data on an application page. The application page is present in the layouts folder and hence is accessible via the respective site URL. There are multiple site collections. ...
1
vote
3answers
1k views
Application page as home page
I am developing a SharePoint 2010 Project totaly in Visual Studio and C#.
I do not want to use SharePoint Designer and configuration via browser.
I need to set a LAYOUT page (application page) as ...
1
vote
1answer
1k views
Prevent folder deletion in document library - Explorer view snafu
We want to prevent users from deleting top level folders in a document library. We created an event receiver on ItemDeleting that checks if the item type is a folder and if the path is the top level, ...
1
vote
3answers
2k views
How to access Root Site Collection from other site collections?
we have a user control on the master page (this masterpage is applied to all sites in the web application).
User control code:
SPSite spsite = new SPSite(SPContext.Current.Web.Url);
...
0
votes
1answer
199 views
getting all AD groups and users of a site collection
Hello everybody I am quite new to the Sharepoint, I am trying to get all the AD groups who have permissions on a sitecollection.
I am able to get all the SPgroups and users using the code below in my ...