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 is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state?
What is enableviewstate?
What is the usage of DelegatingHandler?
What is difference cookie and session?
How can you identify that the page is post back?
What are the advantages and disadvantages of Using Cookies?
What is the current version of asp.net?
Is it right that ASP.NET Web API has replaced WCF?
How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?
What is asp.net caching?
Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?
Explain how can we access static variable?
How to use multiple scriptmanager controls in a web page?
What are the advantages of Web API?
What is razor? : asp.net mvc