Your code is OK, it's just incomplete.
Because in your callback function:
Quote:
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
alert('Hi');
//document.getElementById("myDiv1").innerHTML = xmlhttp.responseText;
window.location = '<%= ResolveUrl("~/Home.aspx") %>';
}
else {
alert('Invalid login');
}
You don't handle the response. You just change the window.location no matter if the user/pass were correct or not.
in your C# code the response is quoted as remark:
Quote:
// string strXmlval = "<responsetext>" + 0 + "";
// Response.Write(strXmlval);
Cheers,
Edo