jquery ajax .ashx
$.ajax({
type: "POST",
url: "Login.ashx",
cache: false,
data: "_name="+ name +"&_pass="+ pass,
success: function(msg){
if(msg == "TRUE")
window.location = "../Common/Loaddata.aspx?name=" + $("#UserName").val();
else
$("#message").html("用户名或密码错误!");
}
});
string username = context.Request.Form["_name"];
string password = context.Request.Form["_pass"];

浙公网安备 33010602011771号