方法一:
Request.ServerVariables["SERVER_NAME"].ToString();
方法二:
@"http://"+HttpContext.Current.Request.Url.Host + HttpContext.Current.Request.ApplicationPath;
方法一:
Request.ServerVariables["SERVER_NAME"].ToString();
方法二:
@"http://"+HttpContext.Current.Request.Url.Host + HttpContext.Current.Request.ApplicationPath;