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 do you mean by authentication?
Where is the view state data stored?
What is the advantage of using Windows authentication in a Web application?
When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?
Explain the difference between asp and asp.net?
What is the differences between a primary key and a unique key in sql server?
What is the difference between exe and dll?
What are the events in a page life cycle?
They mostly asked difference between versions of technologies
How to improve performance of web application asp.net mvc? : Asp.Net MVC
What is request and response in asp.net?
Explain how asp.net different from asp?
Which method do you use to kill explicitly a users session?
Whta are the Various steps taken to optimize a web based application (caching, stored procedure etc.) ?
What is s2s tracking?