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 do I make a dll in c#?
In which order the constructor is called for an inherited class?
Explain About disco and uddi
What is the difference between field and variable in c#?
What is a verbatim string literal and why do we use it?
What will be the output of the following code?
What is the difference between list and array in c#?
What is difference between Enum and Struct?
What is ado net in c#?
What is unsigned int?
What is a hash table in c#?
Which programming language is best for desktop applications?
Explain the differences between static, void and public in c#?
How do switch statements work?
Explain about ODP.net