Hi, I have a little bit of problem in my validation. I have added a custom validator and enabled= false. I have also added other validators too and it is all enabled.
It works like this.
When I enter a value in textbox and click the submit button, the code behind will validate all other basic validators. And when it is successful, custom validator will be enabled=true. And it will just return args.IsValid = false when the textbox value is not equals to the value in the database.
The thing is that the coding works. But only when I click the submit button the 2nd time. Everytime I load the website and tried to enter a value and click the button for the first time, arg.IsValid = false always does not trigger at all. So is this a bug or anything?
Thanks
It works like this.
When I enter a value in textbox and click the submit button, the code behind will validate all other basic validators. And when it is successful, custom validator will be enabled=true. And it will just return args.IsValid = false when the textbox value is not equals to the value in the database.
The thing is that the coding works. But only when I click the submit button the 2nd time. Everytime I load the website and tried to enter a value and click the button for the first time, arg.IsValid = false always does not trigger at all. So is this a bug or anything?
Thanks