anyone know where hte proplem?

  • Thread starter Thread starter yosefkad
  • Start date Start date
Y

yosefkad

Guest
string s = txtfirstname.Text;
string sql = "Insert into DB (1) ([First Name],[Last Name],,[UserName],[Password],[Gender]) values (";

sql += "'" + txtfirstname.Text + "',";
sql += "'" + txtlastname.Text + "',";
sql += "'" + txtemail.Text + "',";
sql += "'" + txtusername.Text + "',";
sql += "'" + txtpassword.Text + "')";
sql += "'" + DropDownList3.Text + "',";










comm.CommandText = sql;
comm.ExecuteNonQuery();
c.Close();
Response.Redirect("wellcome");

[url="https://social.msdn.microsoft.com/Forums/en-US/da04e1b8-948f-4c2b-ab77-edfe110272ad/anyone-know-where-hte-proplem?forum=csharpgeneral"]Continue reading...[/url]
 
Back
Top