System.Data.SqlClient.SqlException occurred while using checked or radio button in form application
if (checkBox1.Checked == true)
{
savecom.Parameters.AddWithValue("@Subject_Maths", "Selected ");
}
if (radioButton1.Checked == true)
{
savecom.Parameters.AddWithValue("@Sex", "Male");
}
else
{
savecom.Parameters.AddWithValue("@Sex", "Female");
}
Please help me.I would really appreciate your help
Thanks
Abhishek Srivasatava
29-Oct-2016You can used this code