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
What kind of data we can store in viewstate?
How you will handle session when deploying application in more than a server?
What are the different types of validation controls provided in ASP.NET?
What are the Types of authentications in IIS
Explain client-side scripting?
How to create multi language website in asp.net mvc? : Asp.Net MVC
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.
What are the uses of list view control in Asp.net?
Explain the use of dataadapter.
How can you send an email message from an asp.net web page?
Explain ViewState?
How you can access the properties and controls of master pages from content pages?
How can you display all validation messages in one control?
What is dynamic web page with example?
How do you use viewstate?