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 will you load dynamic assembly?
What is the difference between dynamic SGA and static SGA?
What are validator? Name the validation controls in asp.net? How do you disable them? Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?
Explain the page lifecycle of an asp.net mvc? : asp.net mvc
Explain about the Class view window?
Web API uses which library for JSON serialization?
What is a query string in a url?
Is a dll file an executable?
What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
What ports must be open for DCOM over a firewall? What is the purpose of Port 135?
What are the parts of an http response?
What is state management in asp.net with example?
Explain the use of errorprovider control in .net?
What is the difference between a default skin and a named skin?
What is the purpose of App_Code folder in ASP.NET? Why we this?