pencilCake
pencilCake

Reputation: 53263

Is it possible to set a scope for ValidationSummaryControl?

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

Answers (2)

Widor
Widor

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

Ghyath Serhal
Ghyath Serhal

Reputation: 7632

Did you try to use the ValidationGroup property.

All the ASP controls have this property.

Upvotes: 0

Related Questions