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;
}
}
{
if (HttpContext.Current.Request.ApplicationPath == "/ ")
{
return @ "http:// " + HttpContext.Current.Request.Url.Host;
}
else
{
return @ "http:// " + HttpContext.Current.Request.Url.Host + HttpContext.Current.Request.ApplicationPath;
}
}
浙公网安备 33010602011771号