Mahesh
Mahesh

Reputation: 1689

ASP.NET session alternative to pass object between pages

I want to pass an object between pages of my website. I know I can use session object for this.

Personally, I don't want to use any session or application or caching for this.

Is there any other alternative?

Please help.

Thanks, Mahesh

Upvotes: 1

Views: 667

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038710

Another alternative would be to serialize the object into a hidden field and when you post to the other page deserialize the value back to an object instance. Or yet another possibility would be to persist the object to some data store and then use an id to fetch it back.

Upvotes: 1

Related Questions