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

Answer Posted / v.vijayakumar

Syntax:
INSERT INTO table name(column name,column name,column
name)values(values,values,values);
Example:
INSERT INTO
employee(Name,emp_id,designation)values('"+textbox1.text+"',"+textbox2.text+",'"+textbox3.text+"');


..................if u use Html control we must use
textbox1.value ..if u use asp.net controls we have to use
textbox1.text........

Is This Answer Correct ?    160 Yes 56 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a multi-layer and multi-tier applications?

587


What is the difference between a page theme and a global theme?

553


What does asp in asp.net stand for?

533


Define static member?

541


Describe the differences between the lifecycles of Windows services and Standard EXE?

607






What are the Types of authentications in IIS

605


What is session mode in asp.net?

529


How use Xml data in ASP.net?

570


Which is better union or union all?

568


Explain the disadvantages of viewstate?

579


What are the various types of validation controls provided by asp.net?

550


What is the maximum number of classes that can be contained in one dll file?

687


9. Why should we hire you over the others waiting to be interviewed?

2147


Explain different authentication modes in asp.net?

558


How many types of sessions are there in asp net?

531