February 20, 2016

To Get Server host URL in Sitecore

You can get Server host URL in Sitecore as below.
Sample code snippet

string HostUrl = Sitecore.Web.WebUtil.GetServerUrl();

No comments:

Post a Comment