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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Will c# 3.0, vb.net 9.0, atlas, or linq be included in the .net framework 3.0?

737


i want to take the fast track training on >net Frame work and work flows and share point could you tellme the good institutes for that cources

1820


Is it possible to create a custom filter?

782


What are the two ways to add constraints to a route?

765


What is viewdata?

805


When will the .net framework 3.0 be released?

744


How route table is created in ASP.NET MVC?

822


The order of the filters that get executed, if the multiple filters are implemented?

844


What is MVVM design pattern?

835


What are the possible razor view extensions?

805


How does .net framework works?

798


Describe the gac in the .net framework.

813


What is presentation framework?

778


How does the .net framework 3.0 relate to the .net framework 2.0?

828


mention what is the difference between ado.net and classic ado?

801