TextMode为Password时设置Textbox值 [英] Set Textbox value when TextMode is Password

查看:122
本文介绍了TextMode为Password时设置Textbox值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello EveryOne,



我想在运行时从数据库中显示asp.net文本框中的用户密码。但是文本框

没有显示密码。那么有没有解决方案。

请给我任何解决方案。

解决方案

好的,明白了。在这里,下面的文章可以帮助您: http://ryanfarley.com/blog/archive/ 2004/12/18 / 1300.aspx [ ^ ]

http://vishalsays.wordpress.com/2009/02/22/setting-value-in-textbox-with-textmodepassword/ [ ^ ]

如何编辑和输入密码 [ ^ ]


  string  sPwdMask =   ************; 
txtTCSPassword.Attributes [ value] = sPwdMask.PadRight( 15 ' ®');


Hello EveryOne,

I want to show user password in asp.net textbox at run time from database. but textbox
is not showing password. so is there any solution for this.
please give me any solution.

解决方案

Ok, got it. Here you go, below articles can help you:http://ryanfarley.com/blog/archive/2004/12/18/1300.aspx[^]
http://vishalsays.wordpress.com/2009/02/22/setting-value-in-textbox-with-textmodepassword/[^]
How to edit and enter Passwords[^]


string sPwdMask = "************";
txtTCSPassword.Attributes["value"] = sPwdMask.PadRight(15, '®');


这篇关于TextMode为Password时设置Textbox值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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