You can trigger OnTheFlyPostBack from client side using SendCustomRequest method.
In this topic, you will learn how to implement the method.
To trigger OnTheFlyPostback
- Drag a WebCombo instance into the WebForm.
- Drag a HTML button and leave the Id as it is, which is Button1.
- Double click the HTML button and add the following code in the defined client side event handler:
JavaScript Copy Code function Button1_onclick() { var combo = ISGetObject("WebCombo1"); combo.SendCustomRequest(); return true; }
- Run the project.
When you click the HTML button, InitializePostBack server side event of WebCombo will be invoked. |