Me.IsValid
-
Hi, I am trying to store a record. It is saying that the form is invalid. I have several field validators. I would like to know if there is something i can type in the debugging tool to find out exactly which validator it is. Is there an easy way to do this, or do i have to go through ALL my validators on the page?? Thank you.
-
Hi, I am trying to store a record. It is saying that the form is invalid. I have several field validators. I would like to know if there is something i can type in the debugging tool to find out exactly which validator it is. Is there an easy way to do this, or do i have to go through ALL my validators on the page?? Thank you.
Are you not display the error message why the validator failed? Its always better you give proper error messages, that would be helpful to you (debugging) as well as the users. Thanks
Its not so easy to do... So are you here!
-
Are you not display the error message why the validator failed? Its always better you give proper error messages, that would be helpful to you (debugging) as well as the users. Thanks
Its not so easy to do... So are you here!
When I debug it, I discover that the validation is False. The vaidation should be true. My question is: If I have 100 validators, instead of going through each one, is it possible to pinpoint which one is causing the problem? Do not worry about my code. I only want to know the answer to the above question. And if there is a way to pinpoint which validator is causing the problem, please help me discover how to do so. Thank you.
-
When I debug it, I discover that the validation is False. The vaidation should be true. My question is: If I have 100 validators, instead of going through each one, is it possible to pinpoint which one is causing the problem? Do not worry about my code. I only want to know the answer to the above question. And if there is a way to pinpoint which validator is causing the problem, please help me discover how to do so. Thank you.
-
You can loop through all ur validators control and check for each one if it's valid or not.
Best Regards, Haissam Abdul Malak My Blog
-
You can loop through all ur validators control and check for each one if it's valid or not.
Best Regards, Haissam Abdul Malak My Blog
I found what the problem was. My application was reloading the page which meant that a few other subroutines were being run before the "Save" subroutine. One of those subroutines was clearing all the the fields which meant that required fields were empty before the record is stored. Hence Me.IsValid was False. Thank you for your replies.