Is it possible to set a scope for ValidationSummaryControl?

119 Views Asked by At

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.

2

There are 2 best solutions below

0
On BEST ANSWER

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!

0
On

Did you try to use the ValidationGroup property.

All the ASP controls have this property.