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
What are Model Binders in ASP.Net MVC?
Is .net core replacing .net framework?
What is layout in mvc?
In which assembly is the mvc framework defined?
What is edm (entity data model)? : Entity framework
Explain dependency resolution?
What are HTML Helpers, AJAX Helpers in ASP.Net MVC?
Does Tempdata hold the data for other request in ASP.Net MVC?
How we can handle the exception at controller level in ASP.Net MVC?
How do you specify comments using razor syntax?
How to use multiple submit buttons in asp.net mvc?
What is Layout in ASP.Net MVC?
What is entity framework in asp net?
explain what does .edmx file contains?
How route table has been created in asp.net mvc?