Skip Navigation LinksHome > Categories > Code from a Category

Delete records in database using 3-tier architecture in with c#

User Name: codelecturer
Name: Mike Chauhan
Contact Me:
Home Page:
6 years of total IT experience including programming, application development, System Maintenance . 3 years of Experienced and expertise in .Net Framework VB, Visual Basic.Net, ASP.Net 2.0, 3.5 and AD... [More]
Viewed Times: 3888
Add Date: 12/07/2012
In this programming article we will learn how to delete the records in database using 3-tier architecture in with c#.
For beginners ,I strongly recommend to read this tutorial 3-Tier Architecture in using c# first to get basics of 3-tier architecture in So let’s begin, have a look over .aspx page


Delete records in database using 3-tier architecture in with c#


As you have seen, we have an asp:gridview control in our web page. We have four template fields in it, these are rollNo, firstName, lastName and Delete image to delete the records. The main thing you must have to notice is the OnRowDeleting event of gridview. Through this event we will delete the records from database. So let’s have a look over its c# code behind file.



Happy Programming!!!

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.