📄 houtaiziliao.aspx.cs
字号:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class houtai : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//服务器类型
this.lblIp.Text = Request.ServerVariables["LOCAL_ADDR"];
//服务器的主机名
this.lblZhujiName.Text = Request.ServerVariables["LOGON_USER"];
//站点物理路径
this.lblPath.Text = Request.ServerVariables["PATH_TRANSLATED"];
//服务器处理请求的端口
this.lblPort.Text = Request.ServerVariables["SERVER_PORT"];
//web服务器的名称和版本
this.lblWebName.Text = Request.ServerVariables["SERVER_NAME"];
//协议的名称和版本
this.Label5.Text = Request.ServerVariables["SERVER_PROTOCOL"];
//客户端操作系统
this.Label6.Text = "Windows2000";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -