Intersoft WebCombo Documentation
How-to: Refresh WebCombo
See Also Send comments on this topic.
Intersoft WebCombo > Getting Started > Samples and Walkthroughs > WebCombo Walkthroughs > How-to: Refresh WebCombo

Glossary Item Box

In WebCombo, you can refresh the combo from either Client or Server-side. 

This topic will show you how to refresh WebCombo on both sides.

To Refresh WebCombo on Server-side

  1. Drag ASP.NET Button to the page.
  2. Double click the ASP.NET button. Then, add the following code in Button1_Click event handler:

    C# Copy ImageCopy Code
    WebCombo1.ClearCachedDataSource();
    

  3. Run the project.

To Refresh WebCombo on Client-side

  1. Go to HTML View and write <input id="Button2" type="button" value="Refresh" onclick="refresh()" />.
  2. Create function refresh() in HTML and add the following code: 

    JavaScript Copy Code
    var combo = ISGetObject("WebCombo1");
    combo.NeedClearList = true;
    

  3. Run the project.

See Also