Tutorial :Not show one validator in asp.net validationSummary



Question:

I have several asp.net validators.
I want to show all(except one) error messages in validation summary.
How can I not show the remaining one in validation summary but in other places?


Solution:1

Could you put the one you don't want to show in a different ValidationGroup to the rest?


Solution:2

Use the Text property of the validator to show in the validator itself. The ErrorMessage property is what is displayed in the ValidationSummary

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.basevalidator.errormessage.aspx


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »