Friday, September 12, 2008

Get Base URL Snippet

public string BaseUrl
{
get
{
string url = this.Request.ApplicationPath;
if (url.EndsWith("/"))
return url;
else
return url + "/";
}
}

No comments: