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
Can non-default constructors be used with single call sao?
What are console applications used for?
Is c# and c sharp same?
Can a constructor be private in c#?
What is transparent caching with aop ?
What are the benefits of using the aggregate method in linq?
Write a C# program to find the Factorial of n
How do you encapsulate in c#?
What is deferred execution in c#?
Why is c# better than java?
Is array immutable in c#?
What is _viewstart cshtml?
To whom a method is accesssed if it is marked as protected internal ?
What is inline function in c#?
Is as keyword in c#?