Hey Folks:
Thanks for your help - it pointed me in the right direction!
I have found that it is very easy to insert lines in the page_load event
to define the default focus and the default button:
Page_Load(..)
{
Page.Form.DefaultButton = btnEnter.UniqueID;
Page.Form.DefaultFocus = tbxInputField.UniqueId;
}
It works perfectly AND it's only two lines of code!
Thanks for your help!
Fred
Joshua Flanagan wrote:
> Those solutions are now obsolete/unnecessary with ASP.NET (original post
> mentioned use of VS2005).
>
> There is a new DefaultButton property on the Form and Panel controls.
>
> http://msdn2.microsoft.com/en-us/lib...ultbutton.aspx
>
> http://msdn2.microsoft.com/en-us/library/d6a7tey4(en-US,VS.80).aspx
>
>
> Joshua Flanagan
> http://flimflan.com/blog
>
>
>
> Zeya wrote:
> > Check this link it is pretty good:
> >
> > http://www.kamp-hansen.dk//document.aspx?id=28
> >
> > http://weblogs.asp.net/pleloup/archi.../09/86794.aspx
> >