Rohan Rohan - 8 days ago 5
ASP.NET (C#) Question

how to display only single message for multiple RequiredFieldValidators?

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

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.