How to Insert a TextBox value in to Sql database using
C#.Net coding
Answers were Sorted based on User's Feedback
Answer / 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 |
What is shadowing?
What is the use .glimpse in mvc?
What is serialization ?
Types of assemblies that can be created in dotnet ?
What are differences between entity framework and l2s? : Entity framework
I can't be bothered with all this CAS stuff. Can I turn it off
What are the methods in Thread class?
How .net assemblies are registred as private and shared assembly ?
What is RouteConfig.cs in ASP.Net MVC 4?
How we can handle the exception at controller level in ASP.Net MVC?
How can you return string result from Action in ASP.Net MVC?
How the ‘page lifecycle’ of ASP.Net MVC does works?