B
Ben Fidge
Hi
I'm writing a web application where the entire site is
driven through a single page, and content is dynamically
loaded using Web UserControls. This is achieved by using
Page.LoadControl() from within the main page.
My Login UserControl has a "Login" button and I want that
to become the default button when the user presses
[Enter].
Currently, the LinkButton that the user clicks on to load
the Login UserControl retains the focus. After they've
entered their Username and Password, pressing [Enter]
fires the OnClick event for the above LinkButton, instead
of the UserControl's "Login" button.
How can I force the UserControls "Login" button's OnCLick
to fire when the user presses [Enter].
Thansk
Ben
I'm writing a web application where the entire site is
driven through a single page, and content is dynamically
loaded using Web UserControls. This is achieved by using
Page.LoadControl() from within the main page.
My Login UserControl has a "Login" button and I want that
to become the default button when the user presses
[Enter].
Currently, the LinkButton that the user clicks on to load
the Login UserControl retains the focus. After they've
entered their Username and Password, pressing [Enter]
fires the OnClick event for the above LinkButton, instead
of the UserControl's "Login" button.
How can I force the UserControls "Login" button's OnCLick
to fire when the user presses [Enter].
Thansk
Ben