将响应重定向到线程中的另一个页面 [英] Redirect Response to another Page in thread

查看:56
本文介绍了将响应重定向到线程中的另一个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我有多个Web服务在线程中.如何将Web服务的结果重定向到另一个aspx页面?如果您需要在另一页上访问它:

您在哪里调用Web服务:

  var 结果= // 网络服务电话转到此处
HttpContext.Current.Session [" ] =结果; 



您的其他.aspx页:

  var  storedResult =会话[" ]  as  // 结果类型在这里;  


Hello,

I Have multiple web service in thread.How can I redirect the result of the webservice to another aspx page?

解决方案

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;


这篇关于将响应重定向到线程中的另一个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆