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 is a model in programming?
Is dapper better than entity framework?
Can we change web.config settings from iis?
What are the difference between asynchronous controller implementation between asp.net mvc 3 & asp.net mvc 4?
what is complex type?
What is controllercontext?
What is difference between Viewbag and Viewdata in ASP.NET MVC?
Explain the use of Inversion of control (IOC)?
Which .net framework is installed?
If I have multiple filters implemented, what is the order in which these filters get executed?
What is difference between viewbag and viewdata and tempdata?
What is disconnected scenario? : Entity framework
How OS come to know whether to load the .net framework when we run an .exe created using .Net framework?
How to use multiple submit buttons in asp.net mvc?
What are Action Methods in ASP.NET MVC?