how to display only single message for multiple RequiredFieldValidators?

Rohan picture Rohan · Jan 12, 2012 · Viewed 22k times · Source

how to display only single message for multiple RequiredFieldValidator instead of individual message for RequiredFieldValidator ?

i want to as shown in following image..

i want to as shown in following image..

my view is..

 my view is.

Answer

Maheep picture Maheep · Jan 12, 2012

You will have to use ValidationSummary control for this. See this ValidationSummary Class MSDN article for details and example on how to do this. This article contains an example of what you are trying to figure out exactly.