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 does the 'page lifecycle' of asp.net mvc works?
What are Model Binders in ASP.Net MVC?
What is mapping in entity framework? : Entity framework
What are the advantages of asp.net mvc?
how do you query in entity model when the result has a join from from different database other than the entity model?
List the new features added in .net framework 4.0.
How to answer for project questions..?
What are the two ways to add constraints to a route?
Explain two instances where routing is not implemented or required?
How does �side by side� work for the .net framework 3.0?
What is managed extensibility framework?
What type of filter does outputcacheattribute class represents?
What is a razor file?
How route table has been created in asp.net mvc?
How does servicing work for the .net framework 3.0? If I install the .net framework 3.0, can I get service updates for the .net framework 2.0?