How to trigger the button's Click event only when user really click it. (Escape the return button)

Hi,

I want the user really click the button, then exec the code in

btnSubmit_Click event . Not by pushing the <return> button. Does anybody have any idea about this?

Thanks

0
sch2000
5/11/2005 1:33:08 AM
asp.net.web-forms 93655 articles. 6 followers. Follow

1 Replies
1132 Views

Similar Articles

[PageSpeed] 47
Get it on Google Play
Get it on Apple App Store

Create a separate Subroutine that does all the stuff you need the click event to do (separate from the Button's click event)
Then, in the button's click event - call that event. At this point, you can also call it from anywhere else in your application that you'd like.


David Wier
MCP/ASPInsider
ASPNet101.com - where to look first!
Please Vote for ASPNet101 - 'Best Community Resource'!
Control Grouper - easily control properties for multiple controls with one control!
Calendar Express - The Best HTML Calendar Generator on the web!
(Please 'Mark as Answer' when it applies)
0
augustwind
5/11/2005 3:33:53 AM
Reply:

Web resources about - How to trigger the button's Click event only when user really click it. (Escape the return button) - asp.net.web-forms

Resources last updated: 1/16/2016 2:12:55 PM