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
How Session use Cookies in State Management?
What are the advantages and disadvantages of session?
What is web api config?
Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc
How can we identify that the page is post back in asp net?
How can you send an email message from an asp.net web page?
What is cookieless session id explain in brief?
What is the importance of aspnet_isapi.dll, inetinfo.exe andaspnet_wp.exe in the page loading process.
List all templates of the repeater control.
What is the difference between page.registerclientscriptblock and page.registerstartupscript?
What is the default timeout for a cookie?
Will the asp.net validators run in server side or client side?
What are strong names?
Define data caching?
State differences between MVC and WebAPI