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

Is asp net front end or backend?

536


Define the term Web Garden?

560


What is clickid?

565


How Session outproc in Sqlserver stored?

2312


What is the difference between client-side and server-side validations in webpages?

571






What is special types forms

545


1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?

1678


Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc

539


What is asp.net caching?

585


In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?

662


Define common type system?

595


How can we prevent browser from caching an aspx page?

539


What is asp according to you?

540


What is state management in asp.net with example?

470


Which method is used to perform all validation at the page level?

544