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: , , ,  · 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: , , , , , , , ,  · 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: , , , , , , , , , ,  · 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: , , ,  · 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: , ,  · Posted in: MOSS, SharePoint

myworldmaps infoyen