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
How to use session under class file of APP_Code folder?
How is lazy loading achieved?
What is a delegate how is it type safe?
What is the reason behind the invention of c#?
Define collections?
Which namespaces are necessary to create a localized application?
What are c# collections?
What are the examples of data types?
What is the difference between paramaterized constructor and copy constructor?
What is the differences between datagrid, datalist and repeater in .net?
Difference between directcast and ctype.
What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?
What are the methods in c#?
What does firstordefault mean in c#?
Is it possible to force garbage collector to run?