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 about asp.net state management?
How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know
What are user controls?
Differentiate between client-side and server-side validations in web pages.
When was asp.net released?
What are the Difference between asp.net and asp ?
What is _dopostback in asp net?
What is base class of .net?
What is the use of express session?
How can I configure asp.net applications that are running on a remote machine?
What is the significance of finalize method in .net?
What is the asp.net control toolkit?
What is %20 in a url?
How can we provide the WebParts control functionality to a server control?
Explain asp.net page life cycle?