Here Mudassar Ahmed Khan has explained with an example, how to display Delete Confirmation Box with CommandField in ASP.Net GridView using C# and VB.Net.
Inside the RowDataBound event handler, the Delete Button will be referenced and then JavaScript Confirmation Box will be assigned to its Client Side OnClick event handler.
Thus when the CommandField Delete Button is clicked, the JavaScript Confirmation Box will be displayed in ASP.Net using C# and VB.Net.
↧