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
How to generate strong name key file or which command is used to generated strong name key file?
Do vs while c#?
Explain code compilation in c#.
What are delegates and why are they required?
How do you escape a character?
Write a sample code to write the contents to text file in c#?
What is access modifier in c#?
What is difference between string and stringbuffer in c#?
What is entity framework c#?
What is a private class in c#?
What are the steps to create an assembly and add it to the gac?
Does c# support properties of array types?
What is the .net datatype that allows the retrieval of data by a unique key?
Is and as keyword in c# net?
Is an interface a type c#?