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 automatic memory management in .net.
What are the authentication types in asp.net?
Define a web service in .net?
Name the tools or API for developing or testing web api?
How many web.config files can I have in an application?
Explain what are webservices?
Explain the difference between response.redirect vs server.transfer
What is the benefit of WebAPI over WCF?
How does asp page work?
List the major built-in objects in asp.net?
Explain about asp.net caching?
Why session is more secure than cookies?
What are the types of authentication in asp.net?
Explain the difference between dataset and datareader.
To bind columns manually which tags do you need to add within the asp:datagrid ?