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

Explain about asp.net state management?

810


How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know

916


What are user controls?

773


Differentiate between client-side and server-side validations in web pages.

781


When was asp.net released?

758


What are the Difference between asp.net and asp ?

789


What is _dopostback in asp net?

731


What is base class of .net?

754


What is the use of express session?

746


How can I configure asp.net applications that are running on a remote machine?

793


What is the significance of finalize method in .net?

783


What is the asp.net control toolkit?

794


What is %20 in a url?

708


How can we provide the WebParts control functionality to a server control?

780


Explain asp.net page life cycle?

852