I'm sure there is probably an easy sanswer to this but I'm tired of working on it. Maybe someone out there has a quick answer to this.
I have a login control that exists within a panel. I have converted the Login control to a template and would like to set the LoginButton of the Login control to be the DefaultButton of the panel. Simple . . . .Right? Wrong. I can't seem to make the code find the LoginButton. Here is the code I tried to use. What did I do wrong?
Dim btnLoginButton As New Button
btnLoginButton = Me.loginbox.FindControl("LoginButton")
pnlBackground.DefaultButton = "btnLoginButton"
Thanks in Advance.