1. 服务器类型:Label1.Text = Environment.OSVersion.VersionString;
2. 站点物理路径:Label2.Text = Request.PhysicalApplicationPath.ToString();
3. 返回服务器的主机名,IP地址:Label3.Text = Server.MachineName+"
4. 服务器操作系统:Label4.Text = Environment.OSVersion.Platform.ToString();
5. 脚本解释引擎:Label5.Text = "Asp.net"+Request.Browser.ClrVersion.ToString();
6.服务器已启动时间:int time = Environment.TickCount / 60000; abel6.Text = time.ToString();
7.脚本超时时间:Label7.Text = Server.ScriptTimeout.ToString();
8.Javascript版本:Label13.Text = Request.Browser.JScriptVersion.ToString();
9.虚拟路径:Label8.Text = Request.Path.ToString();
10. 当前进程占用内存数量:int zoom=Convert.ToInt32(Environment.WorkingSet)/1024;
Label14.Text = zoom.ToString();
11.返回服务器处理请求的端口:Label9.Text = Request.Url.Port.ToString();
12.客户端浏览器类型:Label11.Text = Request.Browser.Type.ToString();
13.服务器 当前进程数:Label10.Text = Environment.ProcessorCount.ToString();
14.客户端操作系统:Label12.Text = Request.Browser.Platform.ToString();
0 评论: