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

Answer Posted / jayatirtha joshi

assign the textbox valuu to a string than using sqlcommand
in c# writing insert querry . insert the value into the
database.
ex; sqlcommand cmd=new sqlcommand("insert into emp values
('"+textbox1.text+"'),con");
cmd.executenonquerry();

Is This Answer Correct ?    24 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are advantages of Dependency Injection (DI) in ASP.Net MVC?

572


What is route config?

555


Which .net framework is installed?

505


what is entity sql?

607


How OS come to know whether to load the .net framework when we run an .exe created using .Net framework?

567






How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?

518


Is http stateful or stateless?

547


Explain the advantages of asp.net mvc over asp.net?

593


Explain dependency resolution?

616


Explain the tools used for unit testing in ASP.Net MVC

598


What operating systems will the .net framework 3.0 be available for?

568


what is way of loading data in ef (entity framework)?

590


In which assembly is the mvc framework defined?

549


How do you specify comments using razor syntax?

598


Explain the methods used to render the views in mvc?

549