RadioButtonList获取值

1.添加时往数据库插入编号:

model.IsHome = Convert.ToInt32(this.RadioButtonList1.SelectedValue);

2修改时对应编号选择项:

this.RadioButtonList1.SelectedValue = sdr["IsHome"].ToString();

 

你可能感兴趣的:(RadioButtonList获取值)