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

Submitted by: Administrator
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();
Submitted by: Administrator

Read Online Dot Net Framework Job Interview Questions And Answers