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 to use session under class file of APP_Code folder?

743


How is lazy loading achieved?

702


What is a delegate how is it type safe?

681


What is the reason behind the invention of c#?

839


Define collections?

682


Which namespaces are necessary to create a localized application?

835


What are c# collections?

692


What are the examples of data types?

739


What is the difference between paramaterized constructor and copy constructor?

730


What is the differences between datagrid, datalist and repeater in .net?

727


Difference between directcast and ctype.

768


What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?

831


What are the methods in c#?

722


What does firstordefault mean in c#?

744


Is it possible to force garbage collector to run?

680