且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

选择下拉列表时自动选择单选按钮

更新时间:2022-10-14 20:20:50

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.


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.