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

how to create session in .net

3 Answers  


What is the .net framework 3.0 (formerly winfx)?

0 Answers  


What is IL

1 Answers  


Hi my name is sahil. i did my bsc in 2008 n did marketing jobs thereafter. bt nw i wanna learn .net to enter IT field. Ive heard deccansoft,secbad is the best inst. for .net. bt do they provide placement?? as im not a fresher so will i be hired by any company..??

1 Answers  


What is page life cycle?

0 Answers  






What is razor code?

0 Answers  


Do you know about the new features in asp.net mvc 4 (asp.net mvc4)?

0 Answers  


mention what is the difference between ado.net and classic ado?

0 Answers   Microsoft,


What is disconnected scenario? : Entity framework

0 Answers  


How we can invoke child actions in ASP.Net MVC?

0 Answers  


Why do I get errors when I try to serialize a Hashtable

1 Answers  


What are the types of assemblies

1 Answers  


Categories