Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I have a grouped list of 4 radio buttons & 4 drop down lists
each radio button has a corresponding drop down list
Is it possible to have the corresponding radio button selected if I select an item from one of the drop down?
if one of my radio buttons has a corresponding textbox? how can i link them?
Posted
Updated 12-May-11 5:14am
v3
Comments
Hemant__Sharma 12-May-11 10:39am    
Add some code. like .aspx markup shoing your drop downlists and radio button grouping
HAMADA_JAN 12-May-11 11:13am    
thx for the replies and it rly works in case of selecting an item but can i check the radio button when i just activate the dropdownlist ?
what about if one of my radio buttons has a corresponding textbox? how can i link them?

All you have to do is set RadioButton.Checked = true in the DropDownList.SelectedIndexChanged event handler for your corresponding controls. To find out which index is selected, just check the DropDownList.SelectedIndex property.
 
Share this answer
 
v3
In DropDown.SelectedIndexChanged you have to place the code of radiobutton1.Checked=True. But before that you have to set autopostback= True for DropDownlist.

Hope this can help You.
 
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