[导入]服务器端用XMLHTTP完成同步远程提交
示例如下:
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;
}
}
以此备份
文章来源:http://www.cnblogs.com/tintown/archive/2006/08/14/476690.html
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;
}
}
以此备份
文章来源:http://www.cnblogs.com/tintown/archive/2006/08/14/476690.html