摘要: 要获取一个ashx页面的到的数据,使用以下方法:1.后台代码:WebClient wc = new WebClient(); Byte[] pageData = wc.DownloadData("http://xxxx.com"); hd_num.Value = Encoding.Default.GetString(pageData);前台代码:<asp:HiddenField ID="hd_num" runat="server" />再通过js获取hd_num的值。2.HttpWebRequest request = H 阅读全文
posted @ 2013-01-25 15:17 Uoolo 阅读(898) 评论(1) 推荐(0) 编辑