I Bind the Dropdownlist at runtime and data is populated to the database. Its ok Fine. But if i want to select the particular value and display in a message box. It only shows the default value.
Here My code is:
protected void Button1_Click(object sender, EventArgs e)
{
Response.Write("You have selected " + DropDownList1.SelectedItem.Value);
}
So how can i display the selected value in the message box. Here i am very new. Please help me.