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

Can non-default constructors be used with single call sao?

523


What are console applications used for?

480


Is c# and c sharp same?

485


Can a constructor be private in c#?

479


What is transparent caching with aop ?

622






What are the benefits of using the aggregate method in linq?

502


Write a C# program to find the Factorial of n

556


How do you encapsulate in c#?

480


What is deferred execution in c#?

514


Why is c# better than java?

499


Is array immutable in c#?

479


What is _viewstart cshtml?

475


To whom a method is accesssed if it is marked as protected internal ?

610


What is inline function in c#?

509


Is as keyword in c#?

515