Table of Contents
  • Getting Started
  • EO.Pdf
  • EO.Web
    • Overview
    • Installation & Deployement
    • EO.Web ToolTip
    • EO.Web Rating
    • EO.Web Slider & RangeSlider
    • EO.Web ListBox
    • EO.Web ComboBox
    • EO.Web Captcha
    • EO.Web ASPX To PDF
    • EO.Web Slide
    • EO.Web Flyout
    • EO.Web EditableLabel
    • EO.Web ImageZoom
    • EO.Web Floater
    • EO.Web Downloader
    • EO.Web ColorPicker
    • EO.Web HTML Editor
    • EO.Web File Explorer
    • EO.Web SpellChecker
    • EO.Web Grid
    • EO.Web MaskedEdit
    • EO.Web Splitter
    • EO.Web Menu
    • EO.Web Slide Menu
    • EO.Web TabStrip
    • EO.Web TreeView
    • EO.Web Calendar
    • EO.Web Callback
    • EO.Web MultiPage
    • EO.Web Dialog
    • EO.Web AJAXUploader
    • EO.Web ProgressBar - Free!
    • EO.Web ToolBar - Free!
  • EO.WebBrowser
  • EO.Wpf
  • Common Topics
  • Reference
Accessing Selection Data

EO.Web ComboBox provides Text property and TextChanged event for you access/monitor ComboBox text.

When the ComboBox is used with an EO.Web.ListBox control, you can use the ListBox control to access the selected item. For example, for the following ASPX code:

ASPX
<eo:ComboBox ....>
    ....
    <DropDownTemplate>
        <eo:ListBox id="ListBox1" ....>
            ....
        </eo:ListBox>
    </DropDownTemplate>
   
</eo:ComboBox>

You can use the following code to access the selected item:

//Check the selected item index. Note it is checked on
//the ListBox control, not on the ComboBox control 
if (ListBox1.SelectedIndex == 0)
{
   ....
}