Tuesday, September 01, 2009

Validation and the ModalPopupExtender

Two quick tips if you are using the ModalPopupExtender from the ASP.NET Ajax control toolkit:

  • If you need to do a postback from inside the panel set as your popup control, wrap the contents of the panel into an UpdatePanel.
  • If you add validation controls inside the panel set as your popup control, make sure the button used as the target control has CausesValidation set to false.

2 comments:

Anonymous said...

Perfect Thanks!

Anonymous said...

Thank you very much, you saved me a headache. :)