houtaiziliao.aspx.cs

来自「新闻管理后台源码,包括添加,删除,修改新闻」· CS 代码 · 共 34 行

CS
34
字号

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 + =
减小字号Ctrl + -
显示快捷键?