Urgent

S

Sunil

I have two textboxes both are normal textboxes. In first textbox(html
servercontrol) I displayed text as user name and in second
textbox(webserver control) I have displayed text as password. When I
click on username text box then the TextBoxMode of second textbox
should be changed to password mode i.e it should now display ******.

Can any one suggest me how to do that.

Regards,

Sunil
 
R

Ray Booysen

Sunil said:
I have two textboxes both are normal textboxes. In first textbox(html
servercontrol) I displayed text as user name and in second
textbox(webserver control) I have displayed text as password. When I
click on username text box then the TextBoxMode of second textbox
should be changed to password mode i.e it should now display ******.

Can any one suggest me how to do that.

Regards,

Sunil
Change TextMode to Password?
 
S

Sunil

No after I click on first textbox then second textbox textmode should
be changed automatically
 
R

Ray Booysen

You need to explain your requirements better.

Do you want your password textbox showing the password until you click
 
S

Sunil

Yes, You got the point. It should show "Password" until user clicks on
user name textbox.

Regards,

Sunil
 
R

Ray Booysen

You'll have to place a javascript function on the onclick() method of
the textbox to change the type of the password textbox to "password"
 
R

Ray Booysen

No, the username password would need the attribute set and change the
javascript to set the password's type.
 
S

Sunil

Can you give me code.

Thanks,

Sunil

Ray said:
You'll have to place a javascript function on the onclick() method of
the textbox to change the type of the password textbox to "password"
 

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

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top