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


Please Help Members By Posting Answers For Below Questions

How do I make a dll in c#?

592


In which order the constructor is called for an inherited class?

623


Explain About disco and uddi

784


What is the difference between field and variable in c#?

555


What is a verbatim string literal and why do we use it?

551






What will be the output of the following code?

589


What is the difference between list and array in c#?

542


What is difference between Enum and Struct?

632


What is ado net in c#?

590


What is unsigned int?

591


What is a hash table in c#?

605


Which programming language is best for desktop applications?

558


Explain the differences between static, void and public in c#?

618


How do switch statements work?

562


Explain about ODP.net

876