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 kind of data we can store in viewstate?

550


How you will handle session when deploying application in more than a server?

558


What are the different types of validation controls provided in ASP.NET?

642


What are the Types of authentications in IIS

575


Explain client-side scripting?

550






How to create multi language website in asp.net mvc? : Asp.Net MVC

468


if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.

1814


What are the uses of list view control in Asp.net?

595


Explain the use of dataadapter.

551


How can you send an email message from an asp.net web page?

503


Explain ViewState?

556


How you can access the properties and controls of master pages from content pages?

491


How can you display all validation messages in one control?

524


What is dynamic web page with example?

499


How do you use viewstate?

532