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 attribute and reflection in c#?

557


Is namespace necessary in c#?

581


What is difference between new and override in c#?

525


What is deadly diamond problem?

631


Are constructors inherited c#?

581






Differentiate between method overriding from method overloading with its functionality?

609


What is the difference between structure and class in c#?

549


Define thread?

661


Is clr a compiler?

568


What are strong name assemblies?

640


What is unrecognized escape sequence in c#?

589


What are the advantages of using assemble language programming?

604


Define an array?

606


Explain the use of Mutex in C#?

649


What is the difference between firstordefault and first?

547