I will be executing a script to remove permissions from a SPitem. However, a rollback plan is required and I am required to create a separate script w ...
I will be executing a script to remove permissions from a SPitem. However, a rollback plan is required and I am required to create a separate script w ...
I retrieved all items in my SharePoint list using .GetItems() command. However, it does not have contain folder type items in my result. A type of ...
I am unable to pass a string value into my SPWeb.GetFolder despite my input being a string value. May I know what have I missed? Below is the error ...
I'm working directly against the SharePoint DB (I know it is highly not recommended but I need to, for several reasons). I'm trying to get the SPSite ...
I have a condition in which I add people to user information list and then would like to add them to a custom list in my site. Using sharepoint search ...
I need to get SPWeb.Groups.Xml in XElement to create XDocument. currently I am getting error as "The '<' character, hexadecimal value 0x3C, can ...
I have code like this to conditionally create a Sharepoint list (sort of an upsert): This worked when first creating, and on subsequent execustions ...
With this code: ...I get, "I/O Error Occurred" (in the IOException catch block). It is this line: ...that throws the error. Is it my destination ...
This might an odd question, but what I would like to achieve is a functionality that would allow specific users to view SharePoint pages as if they we ...
I am just wondering how to find out a memory leak in a code. I am working on a code written by someone else and been told that it has a memory leak. I ...
I would like to manipulate certain data objects bound to SPWeb in my SharePoint 2010 Farm. For instance, I am building an application page accessibl ...
I'm create a timer job in sharepoint and have made it quite far. I am running into the issue of having a "this" object in a static method. Here is my ...
I'm currently working on a project where I'm adding docx-files to the Layout folder in Visual Studio and then use those ducment files to create Conten ...
This is a question I can't handle, so please, give me some advice. Here is my code for getting names of all lists: It works, all ok. But when I wa ...
I have a "project list" (title, lead, members, site-URL) that is supposed to refer to team sites under the site that has the project list. So I added ...
In my PowerShell script, I want to get the SPWebTemplate which has been used to create a SPWeb. In SPWeb instances, properties WebTemplate and WebTemp ...
I am trying to iterate through each web and its webs, to get the list of child webs and so on, but problem is, when iteration comes to a web which doe ...
Is it possible to implement Single Page Web Application that would have sensitive data, e.g. accounts, with address etc, without middleware? I've bee ...
I'm hoping someone can help me out. I need to get the root web of the current site from the SPContext. It's easily done with the following I'm comf ...
I'm trying to use SPWeb.GetListItem() to get an item by a known URL (MSDN). So basically I'm doing the following: in case you are wondering, I'm t ...