asp.net confirm delete action conditionally
In a Asp.n开发者_运维问答et page I have a grid of departments that is displayed with checkboxes that can be checked to delete departments. If the selected record(department) has child records (Employees) I need to confirm the delete - otherwise I will delete the records without confirmation. What is the standard and most elegant way to perform this thanks
Few links which are useful for you.
http://www.codeproject.com/KB/webforms/GridViewConfirmDelete.aspx
http://www.pluralsight-training.net/community/blogs/fritz/archive/2006/03/22/20514.aspx
http://weblogs.asp.net/scottgu/archive/2006/01/02/434362.aspx
http://www.asp.net/data-access/tutorials/adding-a-gridview-column-of-checkboxes-cs
http://www.codeproject.com/KB/webforms/SelChkboxesDataGridView.aspx
精彩评论