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 the Class view window?
How to display Alert in ASP.NET
Define data caching?
How can u deifne the benefits and limitation of using Viewstate for state management?
How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?
What are validators and list some validators of asp.net?
What is view state management in asp net?
What are Caching techniques in .NET
How can u debug your .net application?
Which is faster viewdata or viewbag?
What is the main difference between Asp.net and Vb.net?
Explain the overview of asp.net?
Will session work if cookies is disabled?
What are the validation controls available in ASP.NET?
What is the difference between debug and release?