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

What are sessions and cookies?

569


What is connection pooling and how to enable and disable connection pooling?

486


How do cookies work? Give an example of their abuse.

545


How do I send an email message from my ASP.NET page?

537


What is a web api? Which protocol is used in a web api?

552






How to automatically get the latest version of all the asp.net solution items from source safe when opening the solution?

527


How can you apply a theme to your asp.net application?

539


What are server objects?

520


If 200 is for all successful operation then why do we have 201 response codes?

530


Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?

1911


What is page fragment caching?

555


Can we use MSSql as backend in asp.net...if yes then How.?

583


What is data cache in sql server?

593


How do you design a website with multilingual support in ASP.NET ?

547


What are the types of authentication in asp.net?

551