In ASP.Net MVC passing the object and model is safe and easy to implement, and passing value via QueryString in webform is simple too.
What is the best way to pass objects to another page?
In ASP.Net MVC passing the object and model is safe and easy to implement, and passing value via QueryString in webform is simple too.
What is the best way to pass objects to another page?
The object you want to pass can be saved in a session or the cache and then retrieved from some other page.
Or you can replace Session (which is persistent) by using Context.Items["MyObjectInstance"] (removed after a request), see my comment for the difference between the two.
Context.Items["object"] for passing object ?Context.Items["object"] one way, add in your answer too. Thanks