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
is there any third party tools are using in .net technologies? what are there ? give me the brief introduction?
How do you identify that the page is postback?
What is asp.net response object?
What is state management in .net?
How do we assign page-specific attributes?
What is HTTPModule and HTTPcontext? What is the use of each?
Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?
What are the new features implemented in ASP.NET?
What is the use of response redirect in asp.net?
Why do we use sessions?
How will create assesblies at run time?
What is the extension of master page in asp.net?
What is the difference between page-level caching and fragment caching?
What is session mode in asp.net?
What are the asp.net server side objects?