Dot Net Framework Question:
Download Questions PDF

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

Answer:

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();

Download Dot Net Framework Interview Questions And Answers PDF

Previous QuestionNext Question
What happened when type url in address bar and press enter?What is shadowing?