conn.Open();
cmd.Connection = conn;
cmd.CommandText = "insert into employeedetail values('" + TextBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text + "''"+s+"','" + TextBox10.Text + "','" + TextBox5.Text + "','" + TextBox6.Text + "','" + TextBox7.Text + "','" + TextBox8.Text + "','" + TextBox9.Text + "')";
cmd.ExecuteNonQuery();
conn.Close();
Response.Write("<script>alert('record added')</script>");
Response.Redirect("Employee Official Detail.aspx");
I have all the fields in my database so i need to update the gender as male or female in my databse.here fourth column is gender i have represented as "s".
Seger, if this helps please login to Mark As Answer. | Alert Moderator