Archive for March 13, 2012
Setting List Item Permissions Programatically in sharepoint
I am setting permissions on a individual SPListItem. I’ll create a Role Assignment (which essentially represents the user), bind a Role Definition to the Assignment (such as “Full Control”, etc.), then add the Role Assignment to the object’s RoleAssignments collection. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 […]
March 13, 2012
·
Infoyen ·
No Comments
Tags: MOSS, read list items from sharepoint, SharePoint, SharePoint 2010 · Posted in: List, MOSS, SharePoint
Connect webparts programmatically using SPConnectWebParts
If you wish to connect two webpart where you have webpart consumer and webpart provider object then you can use following idea to implement functionality. /// <summary> /// It connect web parts each others, if any, using consumer and provider objects /// siteWebParts object have all information like consumer,provider connection and mapping. /// You can […]
March 13, 2012
·
Infoyen ·
No Comments
Tags: Add Web Part programmatically using SPLimitedWebPartManager, Connect webparts programmatically using SPConnectWebParts, Connecting Web Parts programmatically, Export Webpart programmatically using SPLimitedWebpartManager, MOSS, Moss 2007, Moss 2007 Tips & Tricks, SPLimitedWebpartManager.ExportWebPart, WebPartManager · Posted in: MOSS, SharePoint
Export and import webparts programmatically
Requirement:- I have 1 site Where it has sharepoint page’s with some webparts. Due to business requirement; we need to export these webpart and import on other site page programmatically. Therefore I created a tool which first exports webparts (.webpart file) and metadata in xml format, then import web part on other site using xml […]
March 13, 2012
·
Infoyen ·
4 Comments
Tags: Add Web Part programmatically using SPLimitedWebPartManager, Add Web Part to Page Programmatically, Connect webparts programmatically using SPConnectWebParts, Connecting Web Parts programmatically, Import WebPart programmatically using SPLimitedWebPartManager, MOSS, Moss 2007, Programmatically creating a QueryStringFilterWebPart, SharePoint, SPLimitedWebPartManager.AddWebPart():, WebPartManager · Posted in: MOSS, SharePoint
Pass page values from one to another page in ASP .NET
Hi, To Pass Values Between ASP.NET Web Pages or To Transfer page values to another page we can use following:- 1. Response.Redirect (Use a query string.) 2. Cookies 3. Session Variables 4. Application Variables 5. HttpContext by using Server.Transfer details:- Introduction We always come into situations in which we need to transfer values from one […]
March 13, 2012
·
Infoyen ·
No Comments
Tags: how to transfer data one page to another page, How to: Pass Values Between ASP.NET Web Pages, Send Data from one page to another page in ASP.NET, Transferring page values to another page · Posted in: ASP .NET
This page contains content or formatting that is not valid. You can find more information in the affected sections
You get this error when you are trying to update a SharePoint webpart tool part or something like that and you click on ‘Publish’ page button. This only happens if you have any Validation Controls on your webpart. Solution: As you have validation controls on your webpart UI and you are not filling in anything, […]
March 13, 2012
·
Infoyen ·
No Comments
Tags: MOSS, Moss 2007, SharePoint · Posted in: MOSS, SharePoint