How to Insert a TextBox value in to Sql database using C#
coding?

Answer Posted / suthasyed

sqlcommand cmd = new sqlcommand("insert into address values
('"+ textbox1.text +"', "+ textbox2.text +")",
connectionstring);

Is This Answer Correct ?    66 Yes 41 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is authentication in asp.net?

575


Why is mvc better than asp.net?

535


What is postback in asp net?

565


Define a multilingual website?

534


What are the advantages of asp.net?

546






What is asp.net and its advantages?

551


Why will you usually create an aspnet user account in the database for an asp.net web application?

541


What are the Types of object in asp

640


How do you secure your connection string information?

523


Where are session variables stored?

515


What is asp.net caching?

580


explain code with multi inhertance

1651


Name the tools or API for developing or testing web api?

535


What is comparevalidator?

525


What is session handling in a webfarm, how it can work with its limits?

630