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

Answer Posted / pksutha

sqlcommand cmd = new sqlcommand("insert into address values
(@textbox1.text,@textbox2.text)",connectionstring);

Is This Answer Correct ?    63 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of session in asp.net?

518


Which protocol is used to call a web service?

556


What are the different kinds of assemblies?

516


Explain the steps needed to be performed in order to create an animation in xaml?

547


Explain cookies with example.

551






Are cookies stored on server or client?

496


Can you use c# without .net?

529


What is application session?

497


What is Partial PostBack in ASP.NET?

594


What is new asp.net core?

565


What are early binding and late binding.

558


Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?

1713


How many types of server controls do we have?Also explain differance between them taking an example of ASP.NET?

2360


What is http pipeline in asp.net?

505


Which property needs to be set for script manager control to extend the time before throwing time out expection if no response is received from the server?

531