private
void button3_Click(object sender, EventArgs e)
{
SqlCommand cmd = new
SqlCommand ("Insert into detail values(" + Int32.Parse(textBox1.Text) + ",' " + textBox2.Text + " '," + Int32.Parse(textBox3.Text) + "," + Int32.Parse(textBox4.Text) + "," + Int32.Parse(textBox5.Text) + ")", con1);
cmd.ExecuteNonQuery();
MessageBox.Show("Record Inserted.......");
DataBind();
}
While debugging the above script i am getting the following error----
Error 1 Expected class, delegate, enum, interface, or struct