惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
IT之家
IT之家
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
L
LangChain Blog
博客园 - Franky
美团技术团队
J
Java Code Geeks
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
小众软件
小众软件
Y
Y Combinator Blog
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Docker
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
Vercel News
Vercel News

博客园 - 简约旋律

如何做一名优秀的部门经理 viewstate 的工作原理 Repeater/DataList分页方法 char与varchar的区别 堂堂正正做人 认认真真做事 笨鸟 节约时间 ASP.NET中的FILE对象总结 当梦想照进现实 (C#) C#中的@符号 数据库事务 读写删文件代码 什么是SQL注入及SQL注入工具 void的使用 导航树扩展 按F5运行时出现目录清单 经典JS收藏 GET POST的使用 关于request的一个问题
一些代码
简约旋律 · 2007-05-20 · via 博客园 - 简约旋律

 //读取服务器信息
    protected void Button1_Click(object sender, EventArgs e)
    
{
        Response.Write(
"当前网页虚拟路径是:" + Request.ServerVariables["url"]);
        Response.Write(
"<br>当前网页虚拟路径是:" + Request.RawUrl);
        Response.Write(
"<br>实际路径"+Request.ServerVariables["path_translated"]);
        Response.Write(
"<br>实际路径"+Request.PhysicalPath);
        Response.Write(
"<br>服务器名:" + Request.ServerVariables["server_name"]);
        Response.Write(
"<br>服务器IP" + Request.UserHostAddress);

    }

    
//读取客户端信息
    protected void Button2_Click(object sender, EventArgs e)
    
{
        Response.Write(
"<br>是否支持背景音乐:"+Request.Browser.BackgroundSounds);
        Response.Write(
"<br>是否支持框架:"+Request.Browser.Frames);
        Response.Write(
"<br>客户用的是系统平台:"+Request.Browser.Platform);
    }



  
protected void Button3_Click(object sender, EventArgs e)
    
{//写入cookie
        HttpCookie nc = new HttpCookie("newcookie");
        nc.Value[name] 
= "天轰川";
        nc.Value[age] 
= "27";
        nc.Value[dt] 
= DateTime.Now.ToString();
        Response.Cookies.Add(nc);
        Response.Write(
"Cookie写入成功!");



<siteMap>
  
<siteMapNode title="Home" description="Home" url="~/home.aspx">
    
<siteMapNode title="Products" description="Out products" url="~/Products.aspx">
      
<siteMapNode title="Hardware" description="Hardware we offer" url="~/Hardware.aspx"/>
      
<siteMapNode title="Software" description="Software for sale" url="~/Software.aspx"/>

    
</siteMapNode>
    
<siteMapNode title="Services" description="Services we offer" url="~/Services.aspx">
      
<siteMapNode title="Training" description="Training" url="~/Training.aspx"/>
      
<siteMapNode title="Consulting" description="Consulting" url="~/Consulting.aspx"/>
      
<siteMapNode title="Support" description="Support" url="~/Support.aspx"/>
    
</siteMapNode>
  
</siteMapNode>
</siteMap>