怎样在前台取RadioButtonList控件的值

来源:百度知道 编辑:UC知道 时间:2024/07/03 05:09:18
asp.net里怎样在前台取RadioButtonList控件的值

RadioButtonlist.selectedindex
返回值是int,指被选中的那个RadioButton在list中的位置
RadioButtonlist.selectedItem
返回的是被选中的那个RadioButton显示的内容

取到值后存入session,在前台显示

用javascript判断哪个checked为true.

RadioButtonList.selectedValue;