在textbox的onblur的客户端事件中用AJAX去检查用户名是否已经存在
解决方案 »
- 菜鸟求租
- “HttpContext.Current.Profile”引发Configuration.ConfigurationErrorsException类型的异常
- gridview分页问题
- 点链接后进行验证 请问怎么做
- asp.net
- 用asp.net以前的用asp得积累都没有了吗?
- confirm的問題
- 为什么我的page_load()不执行啊?真是郁闷!!!
- 这个正则那错了呢?各位大哥来揪揪·
- 我在项目中新加一个aspx文件什么也没作,调试运行出现下面的错误!
- VS2003中rtfbox出现乱码
- *********************帮忙啊,关于如何提升w3p.exe进程运行帐户权限****************
{
var webFileUrl = "ChkUsr.asp?UName=" + document.getElementById("Uname").value + "&Upwd=" + document.getElementById("Upwd").value;
var result = "";
if (window.ActiveXObject) {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
} //var xmlHttp = new ActiveXObject("MSXML2.XMLHTTP");
xmlHttp.open("Post", webFileUrl, false);
xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
xmlHttp.send(""); xmlHttp.onreadystatechange=function()
{
if (xmlHttp.readyState==4)
{
result = xmlHttp.responseText;
}
}
if(xmlHttp.status!=200)
{
alert ('网络故障(xmlHttp.status='+xmlHttp.status+'),请稍后再试!');
} result = xmlHttp.responseText;
document.getElementById("soso").innerHTML= result; }