When working with web forms and validation. Always make sure to check that the page is valid before performing any operations.
Possible Symptoms:
- Custom controls not firing
- The page exhibits unexpected behaviors
Even if you have validation controls on a page, if you do not check that the page is valid, your functions will still execute.
Use: Page.IsValid to check if the page is valid.