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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is application c#?

685


Can we inherit partial class in c#?

688


Can I define a type that is an alias of another type (like typedef in c++)?

777


What is a streamwriter in c#?

702


Is unity object oriented?

689


What is Wrapper class in dot net?

851


What does == mean in c sharp?

715


What is _viewstart cshtml?

674


What does exclamation mark mean in access query?

776


Is c# pass by reference?

703


Explain About Iunknown interface Queue

742


Do events have return type c#?

718


What is the use of convert toint32 in c#?

731


Can a private virtual method can be overridden?

763


Is c# or c++ better for games?

659