有没有一种方法来设置ASP.NET文本框密码字符密码中的TextMode什么时候? [英] Is there a way to set ASP.NET TextBox password char when in Password TextMode?

查看:225
本文介绍了有没有一种方法来设置ASP.NET文本框密码字符密码中的TextMode什么时候?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<asp:TextBox TextMode="Password" runat="server" />

我想,当用户键入文本,它应该显示•而不是简单的星号,有没有办法(在Win-形式的文本框有一个属性PasswordChar,什么是它在网络类似的)? ?

I want that when the user types in text, it should show • rather than a simple asterisk, is there a way (in win-forms' TextBox there is a property PasswordChar, what is it's similar in web)????

推荐答案

没有,这是特定浏览器。也许你可以使用JavaScript假,但我不会推荐它。

No this is browser specific. Maybe you could fake this with javascript, but I wouldn't recommend it.

这篇关于有没有一种方法来设置ASP.NET文本框密码字符密码中的TextMode什么时候?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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