textmode = password

Posted on 2003-12-10
Last Modified: 2008-03-03
I have a asp:textbox that has its textmode set to password. If I tried to feed in a password string via code - the textbox remains blank, but if I take off the textmode then it works (but that's no good because then the password is not masked)
Question by:tyy8
LVL 100

Expert Comment

ID: 9917750
I don't know how ASP works but VB textboxes have a property for the password character.  Does ASP have such a thing?


Accepted Solution

MohamedZaki earned 50 total points
ID: 9918973
i've checked it but it's working fine with me,
i made a javascript function that's add a string to the password field and i got it masked,
Please find the code below

<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<script language="javascript">
function setvalue()



<form method="POST" name="frmData">
      <p><input type="text" name="T1" size="20"></p>
      <p><input type="password"  name="T2" size="20"></p>
      <p><input type="button" value="Button" name="B3" onclick="setvalue()"></p>
      <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>



Expert Comment

ID: 10016487

please post your code as you are trying to populate the box.

ASPdotNet ?


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maxBlock challenge 30 112
data scientists and AI 17 102
Problem to open Excel file 15 97
Problem to error 4 46
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…

895 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now