HOWTO: Show Asterisks In Password Textboxes During Postbackx

D

Dan Sikorsky

Here's a working solution:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

If Page.IsPostBack Then

' Keep the password during postbacks.

txtPassword1.Attributes.Add("Value", txtPassword1.Text)

txtPassword2.Attributes.Add("Value", txtPassword2.Text)

End if



End Sub
 

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

Top