Data from text box
-
I have a simple text box and a button when i click on a button the data must be saved to a table in sql how it can bedone sas
-
I have a simple text box and a button when i click on a button the data must be saved to a table in sql how it can bedone sas
Write some code.
-
Write some code.
SqlCommand myCommand = new SqlCommand("INSERT INTO Designation (Designation) " + "Values ('string')", myConnection); the problem is in this line how to insert a text box value in the values place sas
-
SqlCommand myCommand = new SqlCommand("INSERT INTO Designation (Designation) " + "Values ('string')", myConnection); the problem is in this line how to insert a text box value in the values place sas
sajid.salim.khan wrote:
SqlCommand myCommand = new SqlCommand("INSERT INTO Designation (Designation) " + "Values ('string')", myConnection); the problem is in this line how to insert a text box value in the values place
What about myTextBox.Text? That'll give you the contents of the textbox.
It isn't enough to do well in life. One must do good when and where one can. Otherwise, what's the point?
-
sajid.salim.khan wrote:
SqlCommand myCommand = new SqlCommand("INSERT INTO Designation (Designation) " + "Values ('string')", myConnection); the problem is in this line how to insert a text box value in the values place
What about myTextBox.Text? That'll give you the contents of the textbox.
It isn't enough to do well in life. One must do good when and where one can. Otherwise, what's the point?
i have done that but how to placeit in the value of mycommand parameter SqlCommand myCommand = new SqlCommand("INSERT INTO Designation (Designation) " + "Values HERE ('string')", myConnection); sas
-
i have done that but how to placeit in the value of mycommand parameter SqlCommand myCommand = new SqlCommand("INSERT INTO Designation (Designation) " + "Values HERE ('string')", myConnection); sas
programmer can learn only by googling around in MSDN or somethng like this. Dont, expect direct answer in CodeProject.Try somethings by yourself...
Regards Chintan www.visharadsoft.com (I am thinking to change humans to computer, but unfortunately GOD will not give me the source code)