Thursday, February 4, 2010

INSERT radiobutton value in db

objReg.Sex = RadioBtnSex.SelectedItem.Text;

select radiobutton value from db

if (Convert.ToString(dt.Rows[0]["Sex"]) == "M")
{
lbl_gender.Text = "Male";
}
else
{
lbl_gender.Text = "Female";
}

No comments:

Post a Comment