I am trying to programmatically invoke button click event. I used RaisePostBackEvent() and it does execute the OnButtonClick function for that button.
I am associating a javascript Attribute to that button, and this attribute is not getting executed when I call invoke button click using RaisePostBackEvent(). However, when I click the button from the browser GUI, the javascript is executed!
How do I make it behave the same way in both cases?
Thanks.