帮别的公司做的网站的一个模块
登录,注册他们有自己的通行证,给我一个地址,
http://test:8080/passport/selfservice/outLogin.jsp?userLoginName=" + UserName(自己的数据) + "&password=" + Password(自己的数据);
用来判断用户名密码是否正确,我用的如上的方法,他说如果正确这个地址会返回1,不正确返回0,我怎么接收这个返回值,还有我用如上方法对不对呢???

解决方案 »

  1.   

    用法是正确的,取得返回值问题你就定义一个int型,接受到对方传过来的参数判断就行了
      

  2.   

    不是asp.net论坛技术问题,去合适的论坛问问
      

  3.   

    用法是正确的,取得返回值问题你就定义一个int型,接受到对方传过来的参数判断就行了
    ___________________________________________________
    怎么接收,可能我是晕了头了,能具体一点吗???用哪个C#方法
      

  4.   

    不是asp.net论坛技术问题,去合适的论坛问问
    __________________________________________________
    是asp.net的问题,别人用的是jsp,我用的是C#
      

  5.   

    页面上只有1个返回值
    我想可能是这样的吧
    System.String url = "http://test:8080/passport/selfservice/outLogin.jsp?userLoginName=" + UserName(自己的数据) + "&password=" + Password(自己的数据);System.Net.WebClient c = new System.Net.WebClient();
    System.String result = c.DownloadString(url);
    最后判断这个result
      

  6.   

    你叫他做成一个activex给你,看行不行
    或是给你做一个webservice
      

  7.   

    antoniusguo(anton) ( ) 信誉:100    Blog   加为好友  2007-05-10 15:11:30  得分: 0  
     
     
       页面上只有1个返回值
    我想可能是这样的吧
    System.String url = "http://test:8080/passport/selfservice/outLogin.jsp?userLoginName=" + UserName(自己的数据) + "&password=" + Password(自己的数据);System.Net.WebClient c = new System.Net.WebClient();
    System.String result = c.DownloadString(url);
    最后判断这个result
      
     
    佳!
      

  8.   

    1.System.String url = "http://test:8080/passport/selfservice/outLogin.jsp?userLoginName=" + UserName(自己的数据) + "&password=" + Password(自己的数据);
    System.Net.WebClient c = new System.Net.WebClient();
    System.String result = c.DownloadString(url);
    最后判断这个result  但是我没有试过!
    2.调用webservice
    3.ajax
    后两个都能够取到返回值的,大概是lz要的吧
      

  9.   

    页面上只有1个返回值
    我想可能是这样的吧
    System.String url = "http://test:8080/passport/selfservice/outLogin.jsp?userLoginName=" + UserName(自己的数据) + "&password=" + Password(自己的数据);System.Net.WebClient c = new System.Net.WebClient();
    System.String result = c.DownloadString(url);
    最后判断这个result
    _______________________________________
    正解
    结贴