Click here to Skip to main content
15,900,725 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
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.
Posted

1 solution

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>
 
Share this answer
 
v2
Comments
Madhugundi 16-Nov-12 0:35am    
Thanks how to change color of placeholder text
[no name] 16-Nov-12 0:44am    
Input::-webkit-input-placeholder { color:Red;}
Madhugundi 16-Nov-12 0:57am    
thanks
[no name] 16-Nov-12 1:31am    
Input::-webkit-input-placeholder { color:Red;} // for chrome
Input::-moz-input-placeholder { color:Red;} // for firefox

I forget to mention this earlier.. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900