String was not recognized as a valid boolean in C# RadioButton
<p>I want to send values from one form to another form, which means when i click on a button then i want to send student values to another form through id column. However, I have got an error regarding string was not recognized when i want to send RadioButton values. </p>

<p>Please note, I do not save RadioButton values as string i.e. Male or Female into the database. </p>

<p>Here is the code itself.</p>

<pre><code>if (this.isupdate)
{
    DataTable dtStudentInfo =  GetAllStudentInfoById(this.StudentId);
    DataRow row = dtStudentInfo.Rows[0];
    tbID.Text = row["std_id"].ToString();
    tbName.Text = row["std_name"].ToString();
    tbFatherName.Text = row["std_f_name"].ToString();
    tbAddress.Text = row["std_address"].ToString();
    tbBatchNo.Text = row["std_batch"].ToString();
    tbBatchYear.Text = row["std_batch_year"].ToString();
    tbCNIC.Text = row["std_cnic"].ToString();
    tbMobNumber.Text = row["std_mob"].ToString();
    rbMale.Checked = (row["std_gender"] is DBNull) ? false : Convert.ToBoolean(row["std_gender"] = 1) ? true : false);

}
</code></pre>