用到表单提交么?
A(ASPX)页面把值传递到B页面(ASPX)但不显示B页面,点A里的按钮会出现下载框,可以保存经过传递后的B页面成HTM到本地。用C#实现。请问什么实现?
------解决方案--------------------a.axpx
using System.Net;
using System.IO;
string url = "b.aspx?id=id ";
request = WebRequest.Create(url);
response = request.GetResponse();
using(Stream resStream = response.GetResponseStream())
{
using(StreamReader sr = new StreamReader(resStream, System.Text.Encoding.UTF8))
{
Response.Write(sr.ToEnd());
}
}