Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password textbox not submitting on enter

Status
Not open for further replies.
Jun 24, 2005
340
US
I have an asp:textbox set to textmode=password, when the submit asp:button is clicked everything works fine, however when enter is pressed the value of the textbox is empty when the codebehind tries to pick it up. If I change it to regular text it works ok, but it's a password field so I need this.
I have some javascript that fires the click event on the asp:button if enter is pressed, that works but it seems the value of the textbox gets cleared prior to the submit, but only if it's set to password mode. The weird thing is I have other similar pages and they work fine, it's only this one and everything looks identical. Frustrating.
 
Post the javascript click code and any server side click code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top