密码屏蔽.Net [英] Password Masking in .Net
本文介绍了密码屏蔽.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个包含用户ID,密码和登录(按钮)的示例登录表单。我已经为密码文本框设置了属性:PasswordChar = *。
理想情况下,当我输入密码时,它应该反映为*但是当我在UI中输入密码时,我将密码视为纯文本。
为什么会发生这种情况?
如何解决这个问题?
是否与.net框架或为UI表单形成的dll或exe有关?
Hi,
I have created a sample Login form with User ID ,Password and Login(Button).I have set the property for the 'Password' text box : PasswordChar = *.
Ideally when I enter the password it should reflect as * but still when I enter the password in UI I see the password as plain text.
Why is this happening?
How can I go about this issue?
Is it anything to do with the .net framework or the dll or exe formed for the UI form ?
推荐答案
如果您使用的是标准文本框,则只需将属性PasswordChar设置为所需的占位符 - 例如*
If you are using a Standard-TextBox you only have to set the Property "PasswordChar" to the Placeholder you want - for example "*"
这篇关于密码屏蔽.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文