G
George Ter-Saakov
Hi.
I am fighting the CustomValidator strange behavior for second day already.
I created some test project which is only to reproduce the problem.
1. I created UserControl which has an only a Custom Validator
2. in UserControl:age_Load i set
CustomValidator1.IsValid = false;
3. I insert the User Control into the page and have a submit button there.
So when i run the project it shows me errors from CustomValidator (because
IsValid set to false)
But when i click submit button there is no error shown and Page.IsValid
returns true.
Am i missing something? Where should i set CustomValidator1.IsValid = false;
so the Page.IsValid would be set to false as well?
Thanks.
George.
I am fighting the CustomValidator strange behavior for second day already.
I created some test project which is only to reproduce the problem.
1. I created UserControl which has an only a Custom Validator
2. in UserControl:age_Load i set
CustomValidator1.IsValid = false;
3. I insert the User Control into the page and have a submit button there.
So when i run the project it shows me errors from CustomValidator (because
IsValid set to false)
But when i click submit button there is no error shown and Page.IsValid
returns true.
Am i missing something? Where should i set CustomValidator1.IsValid = false;
so the Page.IsValid would be set to false as well?
Thanks.
George.