How to get value of Radio Buttons?

后端 未结 7 1296
自闭症患者
自闭症患者 2020-12-30 05:05

I have a group box contains radio buttons eg.

o Male

o Female

i want my code to get the sel

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-30 05:45

    To Get the Value when the radio button is checked

    if (rdbtnSN06.IsChecked == true)
    {
    string RadiobuttonContent =Convert.ToString(rdbtnSN06.Content.ToString());
    }
    else
    {
    string RadiobuttonContent =Convert.ToString(rdbtnSN07.Content.ToString());
    }
    

提交回复
热议问题