技术开发 频道

服务器端用XMLHTTP完成同步远程提交


【IT168技术文档】

string Url = "http://xxxx/about17u/callbysoftware/CrmCheckMemberLoginName.asp"; MSXML2.XMLHTTP _xmlhttp = new MSXML2.XMLHTTPClass(); _xmlhttp.open("GET",Url+"?account="+this.txtUsername.Text.Trim(),false,null,null); _xmlhttp.send(""); if(_xmlhttp.readyState == 4) { string xxx=Server.UrlDecode(_xmlhttp.responseText); if(xxx!="0") { Response.Write("<script>alert('此用户已经存在,系统为此保留,请换另一个用户名!');window.opener=null;window.close();</script>"); return; } }
0
相关文章