• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
janingslee
博客园 首页 新随笔 联系 订阅 订阅 管理

2009年12月30日

如何写入/读出Cookie
摘要: protected void Button3_Click(object sender, EventArgs e) {//写入Cookie HttpCookie nc = new HttpCookie("newcookie");//newcookie是这个cookie的名字 nc.Values["name"] = "天轰穿"; nc.Values["age"] = "27"; nc.Values["... 阅读全文
posted @ 2009-12-30 00:52 janingslee 阅读(575) 评论(0) 推荐(0)
 
获取服务器/浏览器的环境变量
摘要: protected void Button1_Click(object sender, EventArgs e) {//获取服务器的环境变量 Response.Write("<br />当前网页虚拟路径是:" + Request.ServerVariables["url"]); Response.Write("<br />当前网页虚拟路径是:" + Request.RawU... 阅读全文
posted @ 2009-12-30 00:36 janingslee 阅读(373) 评论(0) 推荐(0)
 
form的post和get方法实现
摘要: <form id="form1" method="get" name="form1" action="pageresponserequest.aspx">你的姓名是:<input type="text" name="name"/><br />你的年龄是:<input type="text" name="age" /><br /><i... 阅读全文
posted @ 2009-12-30 00:03 janingslee 阅读(232) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3