摘要:
1 添加一般处理程序 ashx<%@ WebHandler Language="C#" Class="Handler" %>using System;using System.Drawing;using System.Drawing.Imaging;using System.Text;using System.Web;using System.Web.SessionState;public class Handler : IHttpHandler, IRequiresSessionState { public void ProcessRequ 阅读全文
摘要:
1 简单处理<form action="Handler1.ashx" method="post" ><p>客户名称: <input type="text" name="CustomerName" style="width: 300px" /></p><p>客户电话: <input type="text" name="CustomerTel" style="width: 300px& 阅读全文
摘要:
1 cookie 使用写入cookieHttpCookie cookie = new HttpCookie("MyCookieName", "string value");Response.Cookies.Add(cookie);读取 cookieHttpCookie cookie = Request.Cookies["MyCookieName"];if( cookie != null ) labCookie1.Text = cookie.Value;else labCookie1.Text = "未定义";删除H 阅读全文