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 server side routing?
Is a dll file an executable?
is gateway for sms continue connected for sending sms.how?
What are user controls?
9. Why should we hire you over the others waiting to be interviewed?
Explain difference between dataset and datareader?
How does output caching work in ASP.NET?
How do you declare static variable?
Explain global assembly cache.
What is __ requestverificationtoken?
What are the Types of object in asp
Who creates jsessionid?
How to create a db connection at one place/page so that we can use that connection for all pages/forms/windows.what r the steps ned to be performed if question not clear,let me know
Will session work if cookies is disabled?
What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?