Label1.Text = "服務器名稱:"+Server.MachineName;//服務器名稱
Label2.Text = "服務器IP地址:" + Request.ServerVariables["LOCAL_ADDR"];//服務器IP地址
Label3.Text = "服務器域名:" + Request.ServerVariables["SERVER_NAME"];//服務器域名
Label4.Text = ".NET解釋引擎版本:" + ".NET CLR" + Environment.Version.Major + "." + Environment.Version.Minor + "." + Environment.Version.Build + "." + Environment.Version.Revision;//.NET解釋引擎版本
Label5.Text = "服務器操作系統版本:" + Environment.OSVersion.ToString();//服務器操作系統版本
Label6.Text = "服務器IIS版本:" + Request.ServerVariables["SERVER_SOFTWARE"];//服務器IIS版本
Label7.Text = "HTTP訪問端口:" + Request.ServerVariables["SERVER_PORT"];//HTTP訪問端口
Label8.Text = "虛擬目錄的絕對路徑:" + Request.ServerVariables["APPL_RHYSICAL_PATH"];//虛擬目錄的絕對路徑
Label9.Text = "執行文件的絕對路徑:" + Request.ServerVariables["PATH_TRANSLATED"];//執行文件的絕對路徑
Label10.Text = "虛擬目錄Session總數:" + Session.Contents.Count.ToString();//虛擬目錄Session總數
Label11.Text = "虛擬目錄Application總數:" + Application.Contents.Count.ToString();//虛擬目錄Application總數
Label12.Text = "域名主機:" + Request.ServerVariables["HTTP_HOST"];//域名主機
Label13.Text = "服務器區域語言:" + Request.ServerVariables["HTTP_ACCEPT_LANGUAGE"];//服務器區域語言
Label14.Text = "用戶信息:" + Request.ServerVariables["HTTP_USER_AGENT"];
Label15.Text = "CPU個數:"+Environment.GetEnvironmentVariable("NUMBER_OF_PROCESSORS");//CPU個數
Label16.Text = "CPU類型:" + Environment.GetEnvironmentVariable("PROCESSOR_IDENTIFIER");//CPU類型