6
Answers

TextBox Problem

sajid jebran

sajid jebran

13y
1.5k
1
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)
Next Recommended Forum