如何清除文本框 [英] How To Clear Text Box

查看:108
本文介绍了如何清除文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我做了一个注册页面。当我从我的用户名和密码登录时,浏览器会问我''保存密码''和''从不为这个网站''。如果我点击保存paasword然后注销。我的问题是现在,如果我打开注册页面然后用户名文本框和密码文本框自动填充...我想要两个文本框空白,如果我点击注册页面...



提前致谢。

Hello Everyone,
I make a registration page.when i do login from my user name & password ,Browser ask me ''Save password'' and ''Never for This site''.if i click save paasword then logout .my problem is now if i open registration page then the username textbox and password textbox automaticaly filled...and i want both textboxes blank if i click registration page...

Thanks in advance.

推荐答案

现在,首先从浏览器中删除保存的密码(例如googe chrome,settings-> ;高级设置 - >密码和表单 - >管理已保存的密码)并从列表中删除。之后使用
For now,first remove the saved password from your browser(e.g. for googe chrome,settings->advanced settings->passwords and forms->manage saved passwords) and remove from the list.After that use
<asp:TextBox ID="TextBox1" runat="server" AutoCompleteType="Disabled"></asp:TextBox>

如上所述解决此问题。希望这有帮助。

as stated above to resolve this issue.Hope this helps.


请参阅此主题

如何避免文本框缓存 [ ^ ]


这个方式

你需要设置如下按以下顺序的文本框的两个属性

This one of the way
you need to set following two property of textbox in the following order
textBox1.AutoCompleteMode = AutoCompleteMode.None;
textBox1.AutoCompleteSource = AutoCompleteSource.None;


这篇关于如何清除文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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