Validator in DetailsView Update
-
I am using Validators (
IValidator
) to validate the data edited by users in a DetailsView. This is the workflow that I want: 1. User updates data 2. User presses save 3. System Saves data 4. Details View stays in edit mode 5. Validation controls display any broken rules. I can do everything except show the validation messages. The validation message will be displayed if, in theItemUpdating
event of the DeatilsView, i cancel theDetailsViewUpdateEven
by setting the property:DetailsViewUpdateEventArgs.Cancel = true
. This behaviour makes me think that once the DetailsView has been directed to save it does not show the Validation errors. (even if I do aPage.Validate()
after the save has completed). Does anyone have an ideas on how I can display the error messages even if I want to save theDetailsView
?