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 default authentication mode for asp.net?

567


Describe how passport authentication works.

577


What tags do you need to add within the asp:datagrid tags to bind columns manually? How?

521


Explain client side state management system.

570


Is asp.net and .net are same or different?

530






How you can add an event handler?

577


Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?

547


ASP.NET 2.0's new membership API used for creating and managing user account is exposed through which 2 clause?

1471


What is the difference between application state and caching?

551


how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

1548


What parameters can you pass in the url of the api?

664


How is the asp.net mvc architecture different from others? : asp.net mvc

493


Who is using asp.net?

509


What is postback pixel?

523


can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it

1420