1.添加时往数据库插入编号:
model.IsHome = Convert.ToInt32(this.RadioButtonList1.SelectedValue);
2修改时对应编号选择项:
this.RadioButtonList1.SelectedValue = sdr["IsHome"].ToString();
1.添加时往数据库插入编号:
model.IsHome = Convert.ToInt32(this.RadioButtonList1.SelectedValue);
2修改时对应编号选择项:
this.RadioButtonList1.SelectedValue = sdr["IsHome"].ToString();