Apex_233

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

 

            WebClient webClient = new WebClient();
      
            NameValueCollection formData = new NameValueCollection();
       //输出值 formData["type"] = "webService_InsertSBKSCRKBD"; formData["SBKSCRKB"] = SBKSCRKB;
       //页面地址 地址加域名 string posturl = "http://" + HttpContext.Current.Request.Url.Authority+ "/PTHC/data/PTHCSY_data.ashx";
       //读取地址并进入一般处理程序 byte[] responseBytes = webClient.UploadValues(posturl, "POST", formData);
//接收返回值 string responsefromserver = Encoding.UTF8.GetString(responseBytes); webClient.Dispose(); return responsefromserver;

 

posted on 2017-11-09 20:37  Apex_233  阅读(438)  评论(0编辑  收藏  举报