Global.cs 获取网址
void Application_Start(object sender, EventArgs e)
{
string url = HttpContext.Current.Request.ServerVariables["Http_Host"].ToString();
}
Global.cs 获取网址
void Application_Start(object sender, EventArgs e)
{
string url = HttpContext.Current.Request.ServerVariables["Http_Host"].ToString();
}
转载于:https://www.cnblogs.com/94cool/archive/2011/11/06/2238430.html