var xhr = new XMLHttpRequest();
xhr.open("post", "/Handler1.ashx", true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if (xhr.status === 200) {
alert(xhr.responseText);
}
}
}
xhr.send("UId=" +UId.value+ "&UPwd=" + UserPwd.value);
xhr.open("post", "/Handler1.ashx", true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if (xhr.status === 200) {
alert(xhr.responseText);
}
}
}
xhr.send("UId=" +UId.value+ "&UPwd=" + UserPwd.value);