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
What are sections?
How to use Jquery Plugins in ASP.Net MVC validation?
How do you handle variable number of segments in a route definition?
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
What is ViewData and TempData in ASP.Net MVC?
what do you mean by table-per-type?
Explain the advantages and disadvantages of ASP.Net MVC over ASP.NET?
Which filter executes first in an asp.net mvc application?
Why to use Html.Partial in ASP.Net MVC?
What is rxjava used for?
What is a model in programming?
How we can add the css in mvc?
Explain the difference between viewbag and viewdata in mvc?
What is object service? : Entity framework
sql related question (outer join, left, right etc) array vs hashtable CRL sqldatareader vs dataset what is WPF, WCF, compare to WinForms Webservices Asp.net MVC vs WebForms?