Question

Can I set a scope for the asp.Net ValidationSummary control so that it only validates the contents of a particular asp.net panel?

My goal is to have 2 different validaitonsummary controls for different panels on the same page.

Was it helpful?

Solution

Yes, set the ValidationGroup property on your summary and on the controls which you want to summarise.

This is just an arbitrary string, so as long as they all match, you have created a group!

OTHER TIPS

Did you try to use the ValidationGroup property.

All the ASP controls have this property.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top