Friday, August 26, 2011

How to click a button by Javascript in Webforms?

Two ways:
1. By jQuery:
$("#ClientID").trigger("click");

2. By __doPostBack function
__doPostBack('server side id name', 'Click');

No comments:

Post a Comment