Search code examples
asp.netrequiredfieldvalidator

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.


Solution

  • 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.