I have a web form undergoing validation when a submit button is clicked and then returning the results to a ValidationSumamry control, fairly straight forward. The catch is that I am using an UpdatePanel to change what fields are being validated and returned to the Summary control by switching the ValidationGroup settings during the post back.
The default Summary control looks as such:
<asp:ValidationSummary ID="vsSubmit" runat="server" HeaderText="<%$ Resources:Resource, ValidationMsg %>" ShowMessageBox="true" />
When I first load the page and hit the submit button the validation runs fine and the errors are reported to the Summary control and are shown in the alert window. The problems is when I choose an option from a RadioList that triggers the UpdatePanel post back.
When this happens the post back looks at what the RL value is and then sets the ValidationGroups for the necessary RequiredFieldValidators and the ValidationSummary as necessary. After the post back is done and I click the submit button the validations run and report their errors. Now, I know the validation's are working because the errors are being reported within the Summary control. However, the alert window is no longer popping up and displaying the list of errors as well.
Is anyone aware of any issues where a post back using the UpdatePanel kills the Summary control's ability to show the alert popup or is there some extra flag that I need to set during the post back? I am not resetting the ShowMessageBox property and when I do a "View Source" in IE it is still set to true.
Any help or ideas would be appreciated.
Thanks