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

Can we write one page in c# and other in vb in one application ?

3 Answers   Keane India Ltd,


Does c# replace c++?

0 Answers  


Is c# easier than c++?

0 Answers  


Differentiate between object pooling and connection pooling in c#?

0 Answers  


Explain the difference between arraylist and array and in c#?

0 Answers  


What is datacontract in c#?

0 Answers  


What is difference between int and int32 in c#?

1 Answers  


What is a protected class in c#?

0 Answers  


Where CANNOT Destructors be implemented ?

3 Answers  


What is mvc firstordefault?

0 Answers  


what is work of continue statement in C#?

3 Answers  


Can you inherit multiple abstract classes in c#?

0 Answers  


Categories