Asp.net 接收客户端Post请求,获取数据的问题

2024-12-25 08:01:54
推荐回答(2个)
回答1:

HTML:












C# code:
protected void Page_Load(object sender, EventArgs e)
{
string UserName = Request.Form["txtUserName"];
string Password = Request.Form["txtPasswrod"];
}

回答2:

直接用Request.Form 就行了吧