开发者

ASP.NET session alternative to pass object between pages

开发者 https://www.devze.com 2023-03-02 19:42 出处:网络
I want to pass an o开发者_如何转开发bject between pages of my website. I know I can use session object for this.

I want to pass an o开发者_如何转开发bject 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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号