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
- Drag ASP.NET Button to the page.
- Double click the ASP.NET button. Then, add the following code in Button1_Click event handler:
C# Copy Code WebCombo1.ClearCachedDataSource();
- Run the project.
To Refresh WebCombo on Client-side
- Go to HTML View and write <input id="Button2" type="button" value="Refresh" onclick="refresh()" />.
- Create function refresh() in HTML and add the following code:
JavaScript Copy Code var combo = ISGetObject("WebCombo1"); combo.NeedClearList = true;
- Run the project.