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
Explain how asp.net different from asp?
What is csrf attack in asp.net?
What is runat?
Explain how can we inherit a static variable?
What is hidden field in asp.net?
Do you know about caching with the datasource controls?
What are the data controls available in asp.net?
What is the difference between rest and restful?
What is the difference between page directive include and action tag include?
What is applicatio domain?
What is difference between singleton and single call?
How would ASP and ASP.NET applications run at the same time on the same server?
Explain the difference between authentication and authorization.
What is autopost?
How do we access view state value of this page in the next page?