可折叠面板的保存状态 [英] collapsiable panel save state

查看:83
本文介绍了可折叠面板的保存状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

注销用户后如何保存面板的折叠状态,以便当用户再次登录时其状态保持不变,它们在注销时会保持不变

我有3个不同的Webpart区域,更新面板的拖放保留了那里的状态和位置,但是折叠的状态没有保留

它们都处于展开状态,因为此状态已设置为浏览器模式(注销后)


我正在使用AjaxControlToolkit

请帮我

感谢

how can i preserve the collapsed state of panels after log out of user, so that when user log in again the state remain the same they r at the log off time

i hav 3 diffrent webpart zone, the drag and drop of update panel preserve there state and position but collapsed state is not preserved

they all come in expand state as this state is set for browser mode (after logout)


i m using AjaxControlToolkit

plz do help me

thanks

推荐答案

根据您所解释的问题,您可以尝试使用 cookies 存储最后/最新状态.根据要求,您可以使用cookie过期策略.
其他状态管理技术将不适用.唯一的选择是将状态保存在数据库中,并在下次登录时使用.
Based on the question you explained, you can try using cookies to store the last/latest state. Depending on requirement you can use cookie expiration policy.
Other state management techniques won''t fit in. Only other option is to save the state in database and use it next time you log on.


请给我提供示例代码. .它将对我有所帮助,谢谢您的答复
can u plz suggest me with sample code . .it will be helpful for me thanks for reply


这篇关于可折叠面板的保存状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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