C#.Net web form calling a Button from javascript

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top