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 are advantages of Dependency Injection (DI) in ASP.Net MVC?
What is route config?
Which .net framework is installed?
what is entity sql?
How OS come to know whether to load the .net framework when we run an .exe created using .Net framework?
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?
Is http stateful or stateless?
Explain the advantages of asp.net mvc over asp.net?
Explain dependency resolution?
Explain the tools used for unit testing in ASP.Net MVC
What operating systems will the .net framework 3.0 be available for?
what is way of loading data in ef (entity framework)?
In which assembly is the mvc framework defined?
How do you specify comments using razor syntax?
Explain the methods used to render the views in mvc?