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

Answer Posted / suthasyed

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

Is This Answer Correct ?    66 Yes 41 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between typeof() vs gettype()?

788


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

792


What is the biggest disadvantage of “Other Return Types” in Web API?

1157


Give an example of cookie abuse.

828


Where is the view state data stored?

767


What is a user developed application?

722


How does a content page differ from a master page?

722


What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?

1000


How can you send an email message from an asp.net web page?

719


Will session work if cookies is disabled?

757


What are the advantages of passport authentication?

746


What is a swagger in web api?

788


Describe the difference between inline and code behind - which is best in a?

813


What is cross page posting in asp net?

721


What are the Types of state management techniques

765