GetBaseURL

public   string   GetBaseURL()
{
if   (HttpContext.Current.Request.ApplicationPath   ==   "/ ")
{
return   @ "http:// "   +   HttpContext.Current.Request.Url.Host;
}
else
{
return   @ "http:// "   +   HttpContext.Current.Request.Url.Host   +   HttpContext.Current.Request.ApplicationPath;
}
}

posted on 2008-06-27 02:01  莫莫  阅读(194)  评论(0)    收藏  举报

导航