Reputation: 3338
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?
Upvotes: 1
Views: 1370
Reputation: 1456
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.
Upvotes: 2