且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将响应重定向到线程中的另一个页面

更新时间:2022-12-09 13:48:38

Provided your result is serializable, just put it in Session if you need to access it on another page:

Where you call the webservice:

var result = //webservice call goes here
HttpContext.Current.Session["WebServiceResult"] = result;



Your other .aspx page:

var storedResult = Session["WebServiceResult"] as //Type of result goes here;