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 you implement thread synchronization in c#?

660


What is method and function in c#?

717


What is meant by enumerable in c#?

709


Is c sharp and c# are same?

714


What are the Types of compatabilities and explain them

715


Is concurrent queue thread safe?

679


Are multiple data types stored in System.Array?

883


What is namespace in oops?

666


What is .net c#?

646


What is an assembly in .net?

762


What is call back method?

716


What is the difference between internal and protected in c#?

654


How do I create multifile assembly?

714


How do I make a dll in c#?

696


How many types of delegates are there in c#?

673