跟小D每日学口语

[导入]服务器端用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;
     }
    }

以此备份

听棠.NET 2006-08-14 18:11 发表评论

文章来源:http://www.cnblogs.com/tintown/archive/2006/08/14/476690.html
posted @ 2008-06-13 11:44  honour  阅读(245)  评论(0编辑  收藏  举报