Home All Groups Group Topic Archive Search About

Enter Key form with many UserControls

Author
8 Apr 2005 5:38 PM
jaqueline
Hi All,

I´m having this strange behavior and on´t know what else to try:

- I have a aspx page with embeded usercontrol for header with some
imagebuttons for pages in my site;

- Other User Control for left navigation
-And my content area with some textboxes and imagebutton for submit.

All of then are inside a <form runat=server> tag

Problem:

When I enter some text in my fist or other textbox inside area and
press the enter key it caches the first imagebutton of my header user
control and not my submit button. This behavior is in all my forms
.....

Any ideia what is wrong/missing?

Thanks in Advance,
Jaqueline Sousa

Author
8 Apr 2005 6:08 PM
Steve C. Orr [MVP, MCSD]
Ya, that's annoying.
Client side script can solve this problem.

You could use this free control.
http://www.metabuilders.com/tools/DefaultButtons.aspx

And here are a couple good articles on the subject:
http://www.allasp.net/enterkey.aspx
http://www.aspnetpro.com/features/2004/06/asp200406so_f/asp200406so_f.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


Show quoteHide quote
"jaqueline" <jacqueline_so***@hotmail.com> wrote in message
news:ef90e2e8.0504080938.4614b9ea@posting.google.com...
> Hi All,
>
> I´m having this strange behavior and on´t know what else to try:
>
> - I have a aspx page with embeded usercontrol for header with some
> imagebuttons for pages in my site;
>
> - Other User Control for left navigation
> -And my content area with some textboxes and imagebutton for submit.
>
> All of then are inside a <form runat=server> tag
>
> Problem:
>
> When I enter some text in my fist or other textbox inside area and
> press the enter key it caches the first imagebutton of my header user
> control and not my submit button. This behavior is in all my forms
> ....
>
> Any ideia what is wrong/missing?
>
> Thanks in Advance,
> Jaqueline Sousa