Madhawa Learns To Blog : C#, Java

.net, c#, java,sql, OOAD and more mad memory dumps...

  Home  |   Contact  |   Syndication    |   Login
  47 Posts | 0 Stories | 57 Comments | 15 Trackbacks

News

Archives

Post Categories

Blog Roll

Hang Outs

My old blog

.net 3.0

Very useful article by Wayne Hartman.

http://blog.waynehartman.com/articles/84.aspx

 


/// <summary> /// Add Permission Level to a Sharepoint user group collection /// </summary> /// <param name="spWeb">The sp web.</param> /// <param name="permissionName">Name of the permission.</param> /// <param name="groupCollection">The group collection.</param> public static void AddPermissionsToGroupCollec... spWeb, string permissionName, string[] groupCollection) { SPSecurity.RunWithElevatedP... { try { //Allow updating of ......

public static List<string> GetChoiceFieldValues(string listName,string fieldName, string siteCollection, string webSite) { List<string> fieldList; SPSite spSite = null; SPWeb spWeb = null; try { if (siteCollection != null) spSite = new SPSite(siteCollection); else spSite = SPContext.Current.Site; if (webSite != null) spWeb = spSite.OpenWeb(webSite); else spWeb = spSite.OpenWeb(); SPList spList = spWeb.Lists[listName]; SPFieldChoice field = (SPFieldChoice)spList.Field... fieldList ......