Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ASP.NET Text Password

Posted on 2007-11-29
2
Medium Priority
?
233 Views
Last Modified: 2013-11-26
I cannot for the life of me figure out why this text box doesn't have the "*******" in it on page load.  I've tried both versions below + putting it in the VB page on Page Load.

<asp:TextBox ID="txtPassword" runat="server" ForeColor="#9F6613" TextMode="Password"
                            Width="145px" onfocus="ClearIt(this);" Text="*******" ></asp:TextBox>

<asp:TextBox ID="txtPassword" runat="server" ForeColor="#9F6613" TextMode="Password"
                            Width="145px" onfocus="ClearIt(this);" >*******</asp:TextBox>
0
Comment
Question by:lrbrister
2 Comments
 
LVL 16

Accepted Solution

by:
SQL_SERVER_DBA earned 2000 total points
ID: 20379369
textbox.Attributes.Add("value", "whatever")
0
 

Author Closing Comment

by:lrbrister
ID: 31411855
Fast...concise...and exactly what I needed.
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question