You could use this free control to solve the problem.
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/20...200406so_f.asp
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"tshad" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a button:
>
> <asp:Button ID="SendEmail" text=" Send " runat="server"
> onClick="sendEmail_click" AlternateText="Send Email"></asp:Button>
>
> It is the only button on the page. It works fine when I press it.
>
> But it doesn't go to the SendEmail_Click routine if I just hit enter.
>
> What would cause it not to work correctly? I don't have any other buttons
> on the page and I don't have this problem with my other pages.
>
> Thanks,
>
> Tom
>