how to automatically click a html button when asp.net button
is clicked. I want when I click btn then automatically Button1 which is a html
button is clicked and performs the task... that means by pressing one button it
internally works for two buttons
Attach the onclick event in the markup of the ASPX page (on the button):
onclick="#('elementName').click();"
Now, if you don't want the post back to occur on the ASP.NET button, then do this:
onclick="#('elementName').click(); return false;"