Reputation: 53263
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.
Upvotes: 1
Views: 112
Reputation: 13275
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!
Upvotes: 1
Reputation: 7632
Did you try to use the ValidationGroup property.
All the ASP controls have this property.
Upvotes: 0