Click here to Skip to main content
15,888,325 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

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

1 solution

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

Where you call the webservice:

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


Your other .aspx page:

C#
var storedResult = Session["WebServiceResult"] as //Type of result goes here;
 
Share this answer
 
Comments
Member 7911429 10-May-11 8:02am    
I get an error like "Object reference not set to an instance of an object."
jim lahey 10-May-11 8:35am    
Is Session State enabled?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900