I want to write a little helper method which returns the base URL of the site. This is what I came up with:
public static string GetSiteUrl() { string ur
Please use the below code
string.Format("{0}://{1}", Request.url.Scheme, Request.url.Host);