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 orm entity framework?
what is conceptual model?
What is the difference between viewbag and viewdata in mvc?
What is the 'page life cycle' of an ASP.NET MVC?
What are the options can be configured in AJAX helpers?
Do I need microsoft .net framework?
Explain RenderBody and RenderPage in ASP.Net MVC?
What are Code Blocks in Views?
What symbol would you use to denote, the start of a code block in razor views?
What are Action Methods in ASP.NET MVC?
what is msl?
What is the use of web api ? Why web api needed, if you have already restful services using wcf ?
Is .net framework backwards compatible?
Explain how you can send the result back in JSON format in MVC?
How can we determine action invoked from HTTP GET or HTTP POST?