Intersoft Support Center

Get Multiple Values in Client-Side

You can get the text and value of multiple selection WebCombo using GetMultipleValuesText and GetMultipleValuesValue methods.

In this topic, you will learn how to implement those methods.

To get the text and value of multiple selection using client-side API

  1. Drag a WebCombo instance into the WebForm.
  2. Drag a HTML button and leave the Id as it is, which is Button1.
  3. To get the text of multiple selection combo, 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");
       alert(combo.GetMultipleValuesText());
       return true;
    }

  4. Run the project.
Previous Next