How to Insert a TextBox value in to Sql database using C#
coding?
Answer Posted / pranitha
first assign namespace like using system.data.sqlclient;
SqlCommand cmd = new SqlCommand("insert into emp
(EmpName,EmployeeCode,Designation,Location)values('" +
TextBox1.Text + "','" + TextBox2.Text + "','" +
TextBox3.Text + "','" + TextBox4.Text + "')");
| Is This Answer Correct ? | 51 Yes | 33 No |
Post New Answer View All Answers
What is data grid view in asp.net?
Explain what is event bubbling?
What does a switch do?
What is the difference between localization and globalization?
which one is more flexibility and reliability and durability asp.net (VS)php which one is best and which one we do nice to create dynamic websites
Explain what does mvc represent in asp.net? : asp.net mvc
Define application state variable and session state variable?
What are the asp.net server side objects?
What are session state modes?
What is the procedure to create the environment for asp.net? : asp.net mvc
How many types of cache are there?
Can you set the session out time manually?
How would you create a permanent cookie?
Can I combine classic asp and asp.net pages?
Is there any property names “isnavigating”?