How to call server side button event from javascript function in asp.net?

Annonymous programmer picture Annonymous programmer · Mar 20, 2013 · Viewed 7.7k times · Source

while trying to call a server side button event from javascript function my code looks like this

 _doPostBack('CalendarButton','CalendarButton_Click');

where CalendarButton is my buttonname and 'CalendarButton_Click' is my CalendarButtonevent

But this statement is not working. I know there is some minor error but i can't find what it is.

Answer

epascarello picture epascarello · Mar 20, 2013

You have one _ it has two

__doPostBack