how to retrive a TextBox value in to Sql database using C#
windows form application coding

Answers were Sorted based on User's Feedback



how to retrive a TextBox value in to Sql database using C# windows form application coding..

Answer / sathish

how to retreive a TextBox value from Sql database using
C#.net coding

Is This Answer Correct ?    11 Yes 2 No

how to retrive a TextBox value in to Sql database using C# windows form application coding..

Answer / 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

how to retrive a TextBox value in to Sql database using C# windows form application coding..

Answer / shanta

You should pass query as
insert into <tablename>('"+textbox.text+"')

no matter whether it contains number or string type value

Is This Answer Correct ?    8 Yes 9 No

Post New Answer

More C Sharp Interview Questions

How can you overload a method?

3 Answers  


Describe how a .net application is compiled and executed

0 Answers  


What is the difference between mobile application and desktop application?

0 Answers  


What is hashset c#?

0 Answers  


Can you allow class to be inherited, but prevent the method from being over-ridden?

1 Answers  






What is the difference between string and string in c#?

0 Answers  


Why constructor is used in c#?

0 Answers  


About Virtual functions and their use ?

13 Answers   MBITS, MMTS,


Which class comes after the SortedList class?

0 Answers   Siebel,


When can a derived class override a base class member?

0 Answers  


How do you create user defined data types in c#?

0 Answers  


What are the features of c#?

0 Answers  


Categories