Enter button does not trigger OnClick Event

sloveasonge

New Member
I have a page with a <asp:TextBox> and a <asp:Button> to submit the info in the TextBox by using the Buttons OnClick Event to trigger off some code. The page works fine if you click the button, but if you hit the enter button on the keyborad, it dose not trigger the OnClick event. It would be nice if the Enter button worked for people that just hit enter. Any Help Please?Instead of "OnClick" use "OnServerClick" event. <BR><BR><input type="submit" OnServerClick="your_function" value=http://aspmessageboard.com/archive/index.php/"Enter" runat="server"><BR>
 
Back
Top