I have a basic ASP.NET C# web application. Each control is paired with a validator control and the errors are displayed to the user via "validation summary" control. The Web page has a next button to go to another aspx page. How do I check in the code behind the Next button if errors exist and not go to the next page?
MSDN shows the ValidatorSummary has a "HasErrors" property. However, this is not a valid property.
on NEXT button
if no errors go to next page
otherwise redisplay the current page.