Click here to Skip to main content
15,894,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have values in my dropdownlist. I want to do "if I select any 1 item from combox then whatever value of that item I want to display in my label. How can I do that? I want that in SelectedIndexChanged event of ajax or javascript.
Posted
Updated 28-Mar-13 6:07am
v2

1 solution

Do something like this:

protected void DropDownList_SelectedIndexChanged(object sender, EventArgs e)
    {
        Label.Text = DropDownList.SelectedValue.ToString();
    }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900