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

Answer Posted / pksutha

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

Is This Answer Correct ?    63 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which object wraps the state or data of a user?

555


Name the namespace which is used by ado.net?

536


Why asp.net is better than php?

502


Explain the main differences between asp and asp.net?

523


Why is asp.net so popular?

516






If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?

526


Explain the difference between inline and code behind - which is best in?

512


What are the types of validation in asp net?

551


What is inproc and outproc?

531


How can we register exception filter from the action?

670


What is redirectpermanent in asp.net?

621


Can we set master page as a start page?

553


What are the advantages of passport authentication?

519


How many types of state management are there in asp net?

530


What is the difference between viewstate and hidden field in asp.net?

492