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 is OSI layer? Explain different layers.

797


What is the difference between stored procedure vs function?

785


Why is this service branded with windows livetm?

785


How will create assesblies at run time?

753


Describe paging in asp.net?

886


What is difference between session and cookies in asp net?

741


Differentiate between globalization and localization.

755


Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?

769


Define machine.config in .net?

744


What is different in .net 1.1 and .net 2.0?

778


Can you explain autopostback?

730


What is viewstate in asp net with example?

738


What are the media types of http requests and response?

732


Can you change a master page dynamically at runtime? How?

690


What is the difference between login controls and forms authentication?

745