Line 62: // SqlCommand cm = new SqlCommand("insert into profile values('" +cls.Text +"','" +semester.Text +"')", con); Line 63: //con.Open(); Line 64: cmd.ExecuteNonQuery(); Line 65: //cm.ExecuteNonQuery(); Line 66: // con.Close();