Including your Page_Load set
this.ComboBox1.SelectedIndexChanged += new System.EventHandler(ComboBox1_SelectedIndexChanged);
Then write an event handler as follows:
private void ComboBox1_SelectedIndexChanged(object sender, System.EventArgs e) { ComboBox comboBox = (ComboBox) sender; string selected = (string) comboBox.SelectedItem; }
Make sure you write this in your Page_Load before setting the default value for combobox, otherwise you will always be the selected item:
if (Page.IsPostBack) return;
source share