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
differences between poco, model first and data first approach?
What is difference between Viewbag and Viewdata in ASP.NET MVC?
What is presentation framework?
Define the core components of an ASP.NET MVC application?
What are the versions of .net framework?
will there be any issues adding a table without primary keys to a data model?
What is ViewData and TempData in ASP.Net MVC?
How does servicing work for the .net framework 3.0?
How do you specify comments using razor syntax?
What are the major improvements provided by the common language runtime and the base class libraries? Or what are the major improvements in .net framework 4.0?
What is the domain object?
What are html helpers in asp.net mvc?
Explain the difference between viewbag and viewdata in mvc?
What is route config?
Why to use '{resource}.axd/{*pathInfo}' in routing in ASP.Net MVC?