How can I trigger a server-side event from a client-side event?

Posted by danish on Stack Overflow See other posts from Stack Overflow or by danish
Published on 2009-06-10T16:14:08Z Indexed on 2010/05/08 6:08 UTC
Read the original article Hit count: 357

Filed under:
|

Short version

All I need is that, in a ModalPopUp, when the DoubleClick event of a ListItem fires, the click event of my OK button should be executed.

Detail

I have a ModalPopUpExtender, which hosts a user control. The user control has an OK and a Cancel button. Along with that, it has a dynamic ListBox added to it. So far, I've considered the following possible solutions:

  1. Use Ajax.Net. But, I cannot afford to have a WebMethod.
  2. Use a ClientScriptCallBack. This will need a lot of JavaScript, since I have made almost every control dynamic.

Is there any other way apart from using an UpdatePanel?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about modalpopup