Problems Setting the TextBox.Text Property

  • Thread starter Thread starter Tom Dacon
  • Start date Start date
T

Tom Dacon

Exactly what problems are you having?

Tom Dacon
Dacon Software Consulting
 
Hello there,
I'm having some problems setting the TextBox.Text Property in my code and
having it returned to the client in the source when the
TextBox.TextMode="Password".

I know this is generally not a good idea to fill it with the actual password
but I would like to put '*'s in it as place holders just so it looks like
the password is actually typed out in there.

Thanks,

David Kyle
www.chloemag.com
 
lol, can't believe I didnt' actually say what the problem was. Absent
minded after 3 days 16 hours a day programing i guess.

anyways, basically the problem is when I assign a value to the TextBox.Text
property it doesn't send that information back to the client in the source.

eg.
OnPageLoad() {
txtPassword.Text = "123456";
}

<asp:textbox id="txtPassword" textmode="Password" runat="server" />

returned source:
<input name="txtPassword" type="password" id="txtPassword" />

There's no value="123456" in the input tag that is sent to the client.

I think this explains it.

thanks for any help.

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top