Why don't you use an <input type=button> instead and then attach your onclick
attribute to that? You can still make it runat=server if you'd like to work
with it on the server.
-Brock
DevelopMentor
http://staff.develop.com/ballen
> Hi,
>
> I have an ASP.Net Page with some control on it (buttons, textboxes,
> calender, etc). When I'm changing the text in the textbox I want to
> run some code and change the date of the calendar. The problem is that
> when I press enter, the code for the button event is called. It looks
> like the button is the default action for pressing enter somewhere on
> the page. How can I change that? The button is an asp button.
>
> Thanks,
> George.