如果在文本模式下,如何将textboxwatermark设置为textbox是asp.net中的密码 [英] how to set textboxwatermark to textbox if it is in textmode is password in asp.net

查看:88
本文介绍了如果在文本模式下,如何将textboxwatermark设置为textbox是asp.net中的密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi,

i have login page contains two textboxes one for username and another one for password i have set textboxwatermark by usign ajax control for username its working fine but when i set to password textbox it shows in encoded form becoz of i set textmode= password so how to resolve this problem plz give solution

<asp:TextBox ID="txtPassword" Width="220px" runat="server"  TextMode="password" CssClass="txtPassword" ToolTip="Enter Password" >

<asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="txtPassword" WatermarkText="Enter Password">
</asp:TextBoxWatermarkExtender>

thanks in advance,

Raghu.

推荐答案

删除水印扩展器并尝试一下...

Remove Water Mark Extender and Try this out...

<asp:textbox id="txtPassword" width="220px" runat="server" textmode="password" placeholder="Enter your password here..." cssclass="txtPassword" tooltip="Enter Password">
</asp:textbox>


这篇关于如果在文本模式下,如何将textboxwatermark设置为textbox是asp.net中的密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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