Is there a way to set ASP.NET TextBox password char when in Password TextMode?(有没有办法在 Password TextMode 中设置 ASP.NET TextBox 密码字符?)
问题描述
我希望当用户输入文本时,它应该显示 • 而不是简单的星号,有没有办法(在 win-forms 的 TextBox 中有一个属性 PasswordChar,它在 web 中有什么相似之处)????
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.
这篇关于有没有办法在 Password TextMode 中设置 ASP.NET TextBox 密码字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:有没有办法在 Password TextMode 中设置 ASP.NET TextBox 密码字符?
基础教程推荐
- SonarQube C# 分析失败“不是指针的有效行偏移" 2022-01-01
- 在 VB6 或经典 ASP 中使用 .NET 2022-01-01
- 重新排序 WPF TabControl 中的选项卡 2022-01-01
- Mono https webrequest 失败并显示“身份验证或解密失败" 2022-01-01
- 更新 Visual Studio 中的 DataSet 结构以匹配新的 SQL 数据库结构 2022-01-01
- 从 C# 控制相机设备 2022-01-01
- 如果条件可以为空 2022-01-01
- 将数据集转换为列表 2022-01-01
- 获取C#保存对话框的文件路径 2022-01-01
- C# 9 新特性——record的相关总结 2023-04-03
