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 is viewbag?
What is an asynchronous controller in asp.net mvc?
What is meant by viewdata?
Explain representational state transfer (rest) in detail?
What are the two ways to add constraints to a route?
Explain JSON Binding?
What are html helpers in asp.net mvc?
Explain the role of assembly in the .net framework.
What is .net framework in simple terms?
How large is the .net framework 3.0? Does this change make the release larger?
Explain the difference between viewbag and viewdata in mvc?
How the ‘page lifecycle’ of ASP.Net MVC does works?
sql related question (outer join, left, right etc) array vs hashtable CRL sqldatareader vs dataset what is WPF, WCF, compare to WinForms Webservices Asp.net MVC vs WebForms?
How to bind table colum with gridview column?
What is meant by domain model?