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

What is difference between rest and soap?

582


What is the difference between sealed vs static class?

586


What is bound controls

596


What is the use of response redirect in asp.net?

585


Name the namespace which is used by ado.net?

538






What is a master page and what does it do?

545


What is server transfer?

507


Is post back property in asp net?

533


Define machine.config in .net?

559


Do you know caching feature?

575


What is a session government?

513


Why is xap important?

612


How to fetch a data from one table to another table in asp.net ?

591


Explain what is an assembly?

569


Is web config mandatory?

550