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 are merge modules?

543


Explain the Order of events in an asp.net page?

591


How to use ipostback?

579


Differentiate between structure and class.

565


How does ASP.NET framework maps client side events to Server side events.?

535






How would you get asp.net running in apache web servers?

529


How do u deploy your asp.net application?

600


Can we create a multiple user simultaneously ?

570


How to implement globalization and localization in the use interface in .net.

522


If you are using components in your application, how can you handle exceptions raised in a component?

2063


How to you can limit Access to Web API to Specific HTTP Verb?

648


Define view state.

537


What is the purpose of using MVC programming pattern in ASP.NET?

541


What is difference between session and viewstate?

462


What is the difference between mechine.config and web.config?

720