Click here to Skip to main content
15,886,110 members
Articles / Web Development / CSS

Delete Functionality in GridView with Confirmation Using jQuery UI Dialog

Rate me:
Please Sign up or sign in to vote.
4.56/5 (10 votes)
9 Aug 2011CPOL2 min read 58.2K   3.2K   50  
You're using a GridView web control to list records from a particular data source and you want a delete functionality for each row of data. A dialog must be presented to the user to confirm deletion. You also want to show a dialog to the user when an error occurs during deletion.
Imports System 
Imports System.Collections.Generic 
Imports Northwind.BusinessObject 
 
Namespace Northwind.BusinessObject 
     ''' <summary>
     ''' This class inherits from the Generic List of Products. 
     ''' It's used so that you can iterate through the list or collection of the 
     ''' Products class.  You don't need to add any code to this helper class. 
     ''' </summary>
     Public Class ProductsCollection
         Inherits List(Of Products) 
         ' constructor 
         Public Sub New() 
         End Sub 
     End Class 
End Namespace 

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United States United States
None.

Comments and Discussions