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
Name the property of the textbox which cannot be changed at runtime?
What are custom attributes in c#?
Explain the working of serialization?
Does c# support a variable number of arguments?
Why is it important to override gethashcode when equals method is overridden?
What is eager and lazy loading in c#?
What types of object can I throw as exceptions?
What is .edmx file?
Name some string escape sequences in c#.
Is an interface a type c#?
Write a sample code to write the contents to text file in c#?
How do destructors and garbage collection work in c#?
Is hashset ordered c#?
What does namespace mean?
How can we set the class to be inherited, but prevent the method from being over-ridden?