开发者

ASP.NET session alternative to pass object between pages

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜