Intersoft WebCombo Documentation
How-to: Trigger OnTheFlyPostBack from client side
See Also Send comments on this topic.
Intersoft WebCombo > WebCombo Features Overview > Client-side Programming How-to Topics > How-to: Trigger OnTheFlyPostBack from client side

Glossary Item Box

You can trigger OnTheFlyPostBack from client side using SendCustomRequest method.

In this topic, you will learn how to implement the method.

To trigger OnTheFlyPostback

  1. Drag a WebCombo instance into the WebForm.
  2. Drag a HTML button and leave the Id as it is, which is Button1.
  3. Double click the HTML button and add the following code in the defined client side event handler:

    JavaScript Copy ImageCopy Code
    function Button1_onclick()
    {
       var combo = ISGetObject("WebCombo1"); 
       combo.SendCustomRequest();
       return true;
    }  
    

  4. Run the project.

When you click the HTML button, InitializePostBack server side event of WebCombo will be invoked.

See Also