Author: itservices | Posted on: 1/6/2010 6:24:55 AM | Views : 596

I have been able to set focus on the UserName TextBox of my Login control in the OnLoad event by performing the following.

if (!Page.IsPostBack) { // Focus on the username txt box this.LoginEmployeeServicesAccess.FindControl("UserName").Focus(); }
I have tried replicating the above for my ChangePassword control however I get an exception stating that the object is null.  Please Help!


I have the DisplayUserName property set to true.
Many Thanks

...

Go to the complete details ...