Solved

ASP.NET Text Password

Posted on 2007-11-29
2
224 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
SQL_SERVER_DBA earned 500 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 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