ASP POST请求





   



   

        用户名:

        密 码:

       
   



<%@ WebHandler Language="C#" Class="Accept" %>


using System;
using System.Web;


public class Accept : IHttpHandler {


    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/plain";
        string userName = context.Request.Form["txtName"];
        string userPwd = context.Request.Form["txtPwd"];

        context.Response.Write("您输入的用户名为" + userName + " 密码为" + userPwd);
    }


    public bool IsReusable {
        get {
            return false;
        }
    }


}

转载于:https://www.cnblogs.com/dxmfans/p/9434761.html

你可能感兴趣的:(ASP POST请求)