1) How to get the Web Title in Sharepoint 2013 using CSOM.
sharePointURL = new Uri(Request.QueryString["SPHostUrl"]);
using (var clientContext =SolutionName.TokenHelper.GetS2SClientContextWithWindowsIdentity(hostWeb, null))
{
Web oWebsite = clientContext.Web;
clientContext.Load(clientContext.Web, web => web.Url);
clientContext.ExecuteQuery();
string webURL = clientContext.Web.Url;
}
No comments:
Post a Comment