避免缓存TextBox(Password) [英] Avoid caching of TextBox(Password)

查看:57
本文介绍了避免缓存TextBox(Password)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



即使用户按下 RefreshButton(F5)
,如何避免TextBox(Password)的缓存 我有一个登录表单用户控件,如果用户从一页登录,则将其分成两页使用,即使在第二页中它也应显示已登录",并且如果用户单击第二页中的退出"按钮,也应该从首页注销.但是,如果我按首页"的刷新"按钮,则再次不允许该用户退出.

Hi,

How to avoid caching of TextBox(Password) even user press RefreshButton(F5)
I''ve a Login form user control which is being used into two pages if a user login from one page then it should display "Logged In" even in second page and also if a user clicks on sign out button from Second page then it should also logged out from First page. But if i press Refresh button of First Page then again not letting that user to sign out.

推荐答案

检查此问题
如何避免缓存文本框 [
check this question
How avoid the cache of Textbox[^]
--NDK


使用此
<asp:textbox textmode="Password" id="txtPassword" runat="server" width="125px" autocompletetype="None" autocomplete="False" ></asp:textbox>


刷新页面时,您的页面将再次提交,
做一件事,你要添加attibute

像登录后的txtPassword.attrbute.add("value",")
when u refresh the page your page being submited again,
do one thing you add attibute

like txtPassword.attrbute.add("value","") after login


这篇关于避免缓存TextBox(Password)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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