Sunday, March 11, 2012

ModalPopup and RequiredFieldValidator

Could you please share a small, self-sufficient repro? Thanks.


Sounds like you need to add the CausesValidation attribute to the button that caused the popup to show.


ModalPopup stops the propagation of the click event on the button and cancels it so my feeling is that that may not be the cause but I may be wrong.


I just did a little test and button's server click event isn't fired but it does cause a post back. PageLoad did run and validation did occur. When I set CausesValidation="false" on the button it didn't cause the validation to fire so it still seems like this would fix his issue.


Thanks, guys. I'll give it a try. Appreciate it.

No comments:

Post a Comment