When I have autopostback set to true on a select box, why is the 'setTimeout' necessary in the onchange event? Why isn't __doPostBack just called directly?
onchange="javascript:setTimeout('__doPostBack(\'ctl00$myselect\',\'\')', 0)"
From MSDN:
The JavaScript setTimeout method is used with the _doPostBack method to ensure that the user action completes before the postback occurs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With