How to Insert a TextBox value in to Sql database using
C#.Net coding

Answers were Sorted based on User's Feedback



How to Insert a TextBox value in to Sql database using C#.Net coding..

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

How to Insert a TextBox value in to Sql database using C#.Net coding..

Answer / abcd

sqlcommand cmd=new sqlcommand("insert into dept values
('"+txtbox1.text+"'),con");
cmd.executenonquerry();

Is This Answer Correct ?    6 Yes 1 No

Post New Answer

More Dot Net Framework Interview Questions

Which are the important namespaces used in mvc?

0 Answers  


How would you deploy your old applications with .net framework 4.0? Are the old applications compatible?

0 Answers  


Explain RenderBody and RenderPage in ASP.Net MVC?

0 Answers  


What is objectset? : Entity framework

0 Answers  


What is the use of view model in asp.net mvc?

0 Answers  






Explain JSON Binding?

0 Answers  


Can we free memory explicitly without waiting for garbage collector to free the memory in .net compact framework?

0 Answers  


Is mvc 4 supporting windows azure sdk (software development kit) ?

0 Answers  


What is entity client data provider? : Entity framework

0 Answers  


How to answer for project questions..?

0 Answers  


How Garbage Collector identifies the objects which are not in use?

6 Answers   EXL, Honeywell, Microsoft, Tech Mahindra, Tesco,


Possible ways to prevent xss attacks on mvc application?

0 Answers  


Categories