前台页面的程序:
一般处理程序:
public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain";//定义获取的形式可以获取json string UserName = context.Request["username"]; string PassWord = context.Request["password"]; if (UserName == "" || PassWord == "") { context.Response.Write("请填写用户名或密码!"); } else { if (UserName == "001" && PassWord == "001") { context.Response.Write("success"); } else { context.Response.Write("用户名或密码错误,请重新登录!"); } } } public bool IsReusable { get { return false; } }获取 数据为 (’#username’).val()获取到 username value 值,输入的字符