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 the default authentication mode for asp.net?
Describe how passport authentication works.
What tags do you need to add within the asp:datagrid tags to bind columns manually? How?
Explain client side state management system.
Is asp.net and .net are same or different?
How you can add an event handler?
Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?
ASP.NET 2.0's new membership API used for creating and managing user account is exposed through which 2 clause?
What is the difference between application state and caching?
how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly
What parameters can you pass in the url of the api?
How is the asp.net mvc architecture different from others? : asp.net mvc
Who is using asp.net?
What is postback pixel?
can s/w quality assurance engineer switch field to programming side i m very much interested in programming but not much good in it