string selectedText = _DropDownList.Items[_DropDownList.SelectedIndex].Text; string selectedValue = _DropDownList.Items[_DropDownList.SelectedIndex].Value;
string selectedText = _DropDownList.Items[3].Text; string selectedValue = _DropDownList.Items[3].Value;
// sets the label to the list items Text value nameOfLable.Text = ddlOne.Items[indexRequired].Text; // sets the label to the list item Value nameOfLable.Text = ddlOne.Items[indexRequired].Value;
string DrpDwnRequiredStr = a1[3];
comboBox1.Items[2].ToString(); listBox1.Items[1].ToString();
Dropdwnlist.items
dropdownlist
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)