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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 923
  • Last Modified:

textmode = password

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)
0
tyy8
Asked:
tyy8
1 Solution
 
mlmccCommented:
I don't know how ASP works but VB textboxes have a property for the password character.  Does ASP have such a thing?

mlmcc
0
 
MohamedZakiCommented:
Hi,
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
<html>

<head>
<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>
</head>
<script language="javascript">
function setvalue()
{
frmData.T1.value="Hii";
frmData.T2.value="Hii";


}

</script>
<body>

<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>
</form>

</body>

</html>
0
 
victoresqCommented:


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

ASPdotNet ?

Vic
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.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now