日期:2014-05-17 浏览次数:20944 次
protected void LoadSystemInf()
{
Response.Expires = 0;
Response.CacheControl = "no-cache";
//取得页面执行开始时间
DateTime stime = DateTime.Now;
//取得服务器相关信息
this.servername.Text = Server.MachineName;
this.serverip.Text = Request.ServerVariables["LOCAL_ADDR"];
this.server_name.Text = Request.ServerVariables["SERVER_NAME"];
int build, major, minor, revision;
build = Environment.Version.Build;
major = Environment.Version.Major;
minor = Environment.Version.Minor;
revision = Environment.Version.Revision;
this.servernet.Text = ".NET CLR " + major + "." + minor + "." + build + "." + revision;
this.serverms.Text = Common.GetSysType(Environment.OSVersion.ToString());
this.serversoft.Text = Request.ServerVariables["SERVER_SOFTWARE"];
this.serverport.Text = Request.ServerVariables["SERVER_PORT"];
this.serverout.Text = Server.ScriptTimeout.ToString();
//语言应该是浏览者信息, 1.0 final 修改
this.cl.Text = Request.ServerVariables["HTTP_ACCEPT_LANGUAGE"];
this.servertime.Text = DateTime.Now.ToString();
//serverppath.Text = Request.ServerVariables["APPL_PHYSICAL_PATH"];
this.servernpath.Text = Request.ServerVariables["PATH_TRANSLATED"];
this.serverhttps.Text = Request.ServerVariables["HTTPS"];
//取得用户浏览器信息
HttpBrowserCapabilities bc = Request.Browser;
this.ie.Text = bc.Browser.ToString();
this.cookies.Text = bc.Cookies.ToString();
this.frames.Text = bc.Frames.ToString();
this.javaa.Text = bc.JavaApplets.ToString();
this.javas.Text = bc.Ecm