cmd.CommandText = "insert into student values(" + this.textBox1.Text + ",'" + this.textBox2.Text + ",'" + this.textBox3.Text + ",'" + this.textBox4.Text + "');";
int temp = cmd.ExecuteNonQuery();
if (temp > 0)
{
MessageBox.Show("Record Added");
}
else
{
MessageBox.Show("Record not Added");
}
mycon.Close();