Posted on November 23rd, 2015 by Kaushik Mohanty
Using SharePoint object model we can pull out all the cross-site groups either by using SPWeb.Groups or by using SPWeb.SiteGroups. Then what is the difference between the two? SPWeb.Groups will allow you to pull out only the groups which have some / any kind of permissions defined within the site. SPWeb.SiteGroups will pull out all […]
Posted on November 23rd, 2015 by Kaushik Mohanty
What is the general approach we follow when we try to add / edit a SPListItem using the SharePoint object model? Yes I know it! Almost everybody will have a common answer to this (which is something similar to what is provided below). SPListItem item = SPList.Items.Add(); item[“Column1”] = “value for column 1”; item[“Column2”] = […]
Posted on November 23rd, 2015 by Kumari Sony
Send Email in Sharepoint using SPUtility.SendEmail using HTML tags. SPUtility.SendEmail has 4 overloaded method in Sharepoint for sending email to any email address. I will discuss mainly 2 methods which can handle every type of html email body in Sharepoint. 1) SPUtility.SendEmail(SPWeb web, bool fAppendHtmlTag, bool fHtmlEncode, string to, string subject,string htmlEmailBody) Most of the […]