示例如下:
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;
}
}
以此备份
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;
}
}
以此备份