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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / abcd

sqlcommand cmd=new sqlcommand("insert into dept values
('"+txtbox1.text+"'),con");
cmd.executenonquerry();

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More Dot Net Framework Interview Questions

What is the use of action filters in an mvc application?

0 Answers  


What is Dependency Injection in ASP.Net MVC

0 Answers   B-Ways TecnoSoft,


Explain the .net framework.

0 Answers  


How .net assemblies are registred as private and shared assembly ?

2 Answers   Infosys, MMTS,


Explain .Net Framework? Why we use it?

0 Answers   MaxSolPro,






Explain bundle.config in mvc4?

0 Answers  


what are abstract classes? what is overriding?

12 Answers  


which are the key concepts of entity data model?

0 Answers   Microsoft,


What is CLR and how it generates native code ?

1 Answers   Digital GlobalSoft, Vital Soft,


What are the advantages of asp.net mvc?

0 Answers  


WHICH IS THE BEST INSTITUTE FOR DOTNET REAL TIME PROJECT TRAINING

21 Answers   ABC, Cap Gemini, Comspark,


What is JIT and how is works ?

10 Answers  


Categories