' If we have to set the focus on a control If cFocus.Length > 0 Then loControlTextbox = oProcess.oPage.FindControl(cFocus) loControlTextbox.Focus() End IfBasically, I have added a cFocus property in my DataEntry class. If it is set, when the form is being generated, it will find the control and set the focus to it.