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 difference between a multi-layer and multi-tier applications?
What is the difference between a page theme and a global theme?
What does asp in asp.net stand for?
Define static member?
Describe the differences between the lifecycles of Windows services and Standard EXE?
What are the Types of authentications in IIS
What is session mode in asp.net?
How use Xml data in ASP.net?
Which is better union or union all?
Explain the disadvantages of viewstate?
What are the various types of validation controls provided by asp.net?
What is the maximum number of classes that can be contained in one dll file?
9. Why should we hire you over the others waiting to be interviewed?
Explain different authentication modes in asp.net?
How many types of sessions are there in asp net?