Bug Bash:Button.CausesValidation, ModalPopups and Validation Controls
The second entry in my BugBash series ... The Bug I recently wrote a post discussing how to implement a master-detail editing scenario using ASP.NET's GridView and DetailsView along with the AjaxControlToolkit's ModalPopup control. My example was pretty standard - each data row in the GridView has an Edit button that when clicked displays the selected row within a DetailsView. My DetailsView uses RequiredFieldValidators for each of the input fields to make sure the user has provided the required information. My sample seemed to work great - I certainly had no issues. But, as Konstantin G posted in a comment - there is a bug hiding out in my example. Here was what Konstantin G had to say: Hi Matt, Great example! Everything works fine, but when you leave blank required field, and hit Cancel button, you can't display modal popup again. Any ideas how to solve this problem? Thanks....