sajid jebran

sajid jebran

  • NA
  • 14
  • 18.6k

TextBox Problem

Sep 20 2011 7:11 AM
Hello Again,

Today i got a new problem, i want to add data of a text box to a database.the columns in database are (FName, Address) the names of the text boxes are FName and Address. the insert string for this is 
INSERT INTO Address(Name, Address)VALUES('FName.Text','Address.Text'");
but when i see the table instead of the vale of textbox it is FName.text and Address.Text. i tried another time with string like this

"INSERT INTO Address (Name, Address) VALUES ('" + FName.Text + "','" + Address.Text + "')";
but this time it was the same

Answers (6)