I am trying to make the Enter key work during login for my app at www.lucidequipment.com
by setting up a default button in a panel. The code works in localhost mode, but on the web server gives the often seen error about needing the default button to be of type IButtonControl. What am I doing wrong?
My best guess is that the button is not properly identified in the code behind.
Protected Sub Login1_PreRender(sender As Object, e As EventArgs)
Dim btnLoginDefault As Button = TryCast(Login1.FindControl("LoginButton"), Button)
pnlLogin.DefaultButton = btnLoginDefault.UniqueID