how to retrive a TextBox value in to Sql database using C#
windows form application coding
Answer Posted / shikha kalyan
If you want to store value of a textbox in SQL Server
database then you should use an Insert query:
Let the textbox name be textbox1
Insert into <tablename>(<fieldname>) values('"+textbox1.Text+"')
Eliminate ' if textbox does not contain a string value.
| Is This Answer Correct ? | 18 Yes | 11 No |
Post New Answer View All Answers
What Is The Difference Between The System.array.copyto() And System.array.clone()?
Name some string escape sequences in c#.
Who benefits from ajax?
Explain the security with aop?
Can we assign null value to integer?
Can main method be final?
What does console readkey do in c#?
What is default value of bool in c#?
What is ienumerator c#?
In the page load event I assigned dropdownlist’s datasource property to a valid list. On the submit button click.. The same datasource property is coming as null. Why?
What is cls, cts and clr in net?
What are the two uses of a ‘using’ statement in c#?
What is enumerable in c#?
What is class and object c#?
What do you mean by serialization in .NET?