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
How to change the action name in ASP.Net MVC?
mention what is the difference between ado.net and classic ado?
What is the purpose of a web form?
Is .net core faster than .net framework?
What are the new enhancements done in default project template of asp.net mvc 4?
What are the advantages of asp.net mvc?
What are the possible razor view extensions?
What are authentication filters in web api?
Explain Bundle.Config in ASP.Net MVC4?
Does Tempdata hold the data for other request in ASP.Net MVC?
How large is the .net framework 3.0?
How can I return string result from action in asp.net mvc?
What is edm designer? : Entity framework
What is viewbag title?
What are scaffold templates in mvc?