如何在会话asp.net4.0中存储viewstate [英] how to store viewstate in session asp.net4.0

查看:53
本文介绍了如何在会话asp.net4.0中存储viewstate的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i我将数据存储在viewstate中,然后转到另一个页面,当我在viewstate中创建时,当我回到我的页面时,我丢失数据?

我如何解决这个问题

解决方案

当你重定向到其他页面时查看松散的数据。



如果你下次回到页面,并且想要那些数据,那么请改用session。


aspnet-viewstate-example-how-to-store.html [ ^ ]



ASP.NET状态管理的初学者教程 [ ^ ]



查看链接..希望你会明白。

hi,

i am store the data in viewstate, and go to the another page and when i back to come in my page when i create in viewstate, i lost the data?
how i slove this

解决方案

Viewstate loose data when you redirect to other page.

If next time you come back to page, and you want that data, then use session instead.


aspnet-viewstate-example-how-to-store.html[^]

A Beginner's Tutorial on ASP.NET State Management[^]

Check the links..hope you will get idea.


这篇关于如何在会话asp.net4.0中存储viewstate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆