Drop down list selected value changed
-
hi, can we check if the selected value of the drop down list box has been changed?
scarface
yes when ever selected value of dropdown is changed the event selected index changed is called if ispost back property of dropdown list is set to true. or you can check it on client side also without postback.
Government Dyal Singh College Lahore.
-
hi, can we check if the selected value of the drop down list box has been changed?
scarface
Here is an example of how it can be done. On the main page i have a label that reads the value of the dropdownlist and once the dropdownlist updates it re-populates the label. the main page
Update1 Update2
and the code behind
protected void Page_Load(object sender, EventArgs e)
{
Label1.Text = DropDownList1.SelectedValue;}
This is a quick example just to point you in the right direction. Hope it helps.
Matthew Vass QA Analyst mvass@hostmysite.com HostMySite.com
-
hi, can we check if the selected value of the drop down list box has been changed?
scarface