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

Answer Posted / chandra shaker

insert into emp(empname) values('"+textbox1.value+"')


If you use html cocntrol textbox1.Value
or
If you use Aso cocntrol textbox1.Text

Is This Answer Correct ?    192 Yes 84 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

6. Tell us about a time when you failed to meet a deadline. What were the repercussions?

1718


What is sql data source control in asp.net?

563


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

503


How should I destroy my objects in asp.net?

593


Out of ASP or ASP.NET which one is stateless?

670






Define machine.config in .net?

544


How can you implement the postback property of an asp.net control?

519


What is a 404 redirect?

546


Can you use c# without .net?

529


How to find out what version of asp.net I am using on my machine?

570


What are ASP.NET Web Forms? How is this technology different than what is available though ASP?

918


What is asp.net used for?

588


What is asp.net master page?

550


What is the appSettings Section in the web.config file?

573


Why mvc is better than asp.net? : Asp.Net MVC

461