Posted on: 6/19/2014 8:41:03 PM | Views : 425

The ChangePassword control includes a textbox named CurrentPassword. I want to set focus to this textbox when the page loads but I can't seem to get a reference to the textbox. My attempt 
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim txtPassword As TextBox = ChangeUserPassword.FindControl("CurrentPassword") txtPassword.Focus() End Sub does not work. Suggestions?
Thanks

Go to the complete details ...