Author: Unknown
•19:27

1. 服务器类型:Label1.Text = Environment.OSVersion.VersionString;

2. 站点物理路径:Label2.Text = Request.PhysicalApplicationPath.ToString();

3. 返回服务器的主机名,IP地址Label3.Text = Server.MachineName+""+Request.UserHostAddress+"";

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();

8Javascript版本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();
This entry was posted on 19:27 and is filed under . You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

0 评论: