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 the request flow used for asp.net mvc framework? : asp.net mvc
Explain how is the asp.net mvc architecture different from others? : asp.net mvc
How do cookies work?
Any disadvantages in Dataset and in reflection ?
What is meant by server side scripting?
How about the security in Activex DLL and Activex EXE ?
What is the displayafter property in updateprogress control?
what is command line compiler.what are the steps and how it is related to debugging.
What does asax stand for?
What is page fragment caching?
What is the use of express session?
Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?
How asp.net mvc differs from asp.net web forms? : asp.net mvc
What is the web.config file in asp?
How tooltip is set through code-behind in ASP.NET?