将值保存为每个用户的默认值 [英] save values as default per user

查看:67
本文介绍了将值保存为每个用户的默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在每个aspx中都有一个过滤器部分,它包含不同类型的控件(textbox,radiobutton,checklist ...)当用户更改过滤器主体中任何控件的值时,这个新值将会保存为当前用户的默认值,当关闭会话或呈现页面时,此新值将被设置为此页面的默认值...顺便说一下,此应用程序包含大约50个aspx页面,不喜欢使用cookie .can输出页面缓存可以解决这个问题???或者将在当前浏览器上待定?在此先感谢

I have in each aspx a filter part which include different types of controls(textbox,radiobutton,checklist...) And when user change the value of any control in filter body this new value will be saved as default for current user and when close the session or rendering the page this new values will be set as default for this page...btw this application contains about 50 aspx page and not prefered to use cookie .can output page caching can solve this problem??? Or will be pending on the current browser? Thanks in advance

推荐答案

我建​​议在数据库中有一个 UserPreference 表UserId 作为唯一列。页面上有一个按钮保存首选项



然后单击它,只需执行 Ajax 调用并更新该用户的表格。
I would suggest to have a UserPreference table in database with UserId as unique column. and have a button on page "Save Preferences".

Then on click of that, just do an Ajax call and update the table for that User.


这篇关于将值保存为每个用户的默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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