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

In razor syntax, what is the escape sequence character for @ symbol?

781


differences between poco, model first and data first approach?

868


What are the advantages of asp.net mvc?

795


What is net framework 3.0 ?

832


What is the meaning of unobtrusive javascript? Explain us by any practical example.

778


What is ViewStart Page in ASP.Net MVC?

785


Explain the request flow in asp.net mvc framework?

758


What is connected scenario? : Entity framework

770


Which approach provides better support for test driven development - asp.net mvc or asp.net webforms?

755


mention what is the key advantage of using entity framework or ef?

797


Can you explain model, controller and view in mvc?

771


What is the use of the default route?

804


Which version of the common language runtime (clr) does the .net framework 3.0 use?

808


What is the difference between model view and controller?

691


Explain the new features 3.5 framework against with the tool?

723