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
I'm using following code from Application_Start
String baseUrl = Path.GetDirectoryName(HttpContext.Current.Request.Url.OriginalString);