471,337 Members | 1,146 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

C#.Net web form calling a Button from javascript

Hi,

In the C#.Net, how do we calling a Button's event from the javascript?
e.g., if I hit the "Enter" key, then it will execute the btnQry_Click(object
sender, EventArgs e)
Thanks for help.
Jason
Jun 27 '08 #1
1 1150
Hi,
If you set the button's type as "Submit" then on the click of the enter key
it will execute the button's handler on the server side.

If you meant to ask something else then please post the code snippet.

regards,
Joy

"Jason Huang" wrote:
Hi,

In the C#.Net, how do we calling a Button's event from the javascript?
e.g., if I hit the "Enter" key, then it will execute the btnQry_Click(object
sender, EventArgs e)
Thanks for help.
Jason
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Julia Briggs | last post: by
5 posts views Thread by Rose | last post: by
5 posts views Thread by Navillus | last post: by
11 posts views Thread by V S Rawat | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.