try { SqlConnection con = new SqlConnection("Data Source=VIDYA\\SQLEXPRESS;Initial Catalog=EExamData;Integrated Security=True"); SqlDataAdapter da = new SqlDataAdapter(); SqlCommand cmd = new SqlCommand("insert into Signup(Name,Gender,Email,Password) values('" + name.Text + "','" + Gender + "','" + emailid.Text + "','" + passward.Text + "')", con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); lbl_error.Text = "Successfully Registered"; } catch(Exception ex) { Response.Write("Error" + ex); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)