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 are the benefits of using generics in c#?
What is the difference between final finally and finalize in c#?
What are extensions in c#?
Is c# a strongly-typed language?
Is string a class in c#?
What is view state c#?
What is wrong with the sample program below?
Where do I put dll files?
Is null c# operator?
What is dll in vb.net?
What is a Assembly?
Explain the difference between Response.Write () and Response.Output.Write ().
What is disconnected data architecture in c#?
What is the use of functional interface?
How much time will it take to learn unity?