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

What does it mean to override a method?

0 Answers  


Indexers in c#?

8 Answers   Intaglio, Microsoft, TCS,


What is a console file?

0 Answers  


Which of these string definitions will prevent escaping on backslashes in c#?

0 Answers  


Can I call a virtual method from a constructor/destructor?

0 Answers  






What is the data encapsulation?

0 Answers  


What is a destructor in c#?

0 Answers  


Is java better than c#?

0 Answers  


Can you access a hidden base class method in the derived class?

0 Answers  


What is writeline in c#?

0 Answers  


What is ienumerable t in c#?

0 Answers  


What is difference between throw and throws in c#?

0 Answers  


Categories