需要用*符号替换模式密码内容的asp文本框 [英] Need to replace the asp textbox of mode password content with * symbol
本文介绍了需要用*符号替换模式密码内容的asp文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要用*符号替换密码模式的asp文本框的内容.是否可以这样做?
预先感谢.
Hi,
I need to replace the content of asp textbox of password mode with * symbol.Is it possible to do that?
Thanks in advance.
推荐答案
将文本框的TextMode
设置为TextBoxMode.Password
.
<asp:TextBox ID="TextBox1" runat="server" TextMode="Password"></asp:TextBox>
使用
this.txtpass.Attributes.Add("value", "password");<br />
这篇关于需要用*符号替换模式密码内容的asp文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文