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


Please Help Members By Posting Answers For Below Questions

Explain about the Class view window?

815


How to display Alert in ASP.NET

878


Define data caching?

733


How can u deifne the benefits and limitation of using Viewstate for state management?

949


How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?

805


What are validators and list some validators of asp.net?

764


What is view state management in asp net?

710


What are Caching techniques in .NET

845


How can u debug your .net application?

828


Which is faster viewdata or viewbag?

809


What is the main difference between Asp.net and Vb.net?

832


Explain the overview of asp.net?

815


Will session work if cookies is disabled?

779


What are the validation controls available in ASP.NET?

766


What is the difference between debug and release?

766