Validation Control
-
Hai I am using AsP.NET Validation control. When a Validation error occur i need to Focus the corresponding control, Without any postback. please help to solve this problem Thanks and Regards
I'm not certain it's the best solution but I guess it works. Every control that may have wrong input must have an event that correspons to the change. For example: in a TextBox control. Now you can make the function (in this example: OnTextChanged) with an algorithm that searches for the validator with the error and focuses the relevant control. In order to find the validator with the error use the interface Ivalidator and Validors. Bye
-
Hai I am using AsP.NET Validation control. When a Validation error occur i need to Focus the corresponding control, Without any postback. please help to solve this problem Thanks and Regards
I'm not certain it's the best solution but I guess it works. Every control that may have wrong input must have an event that corresponds to the change. For example: in a TextBox control. Now you can make the function (in this example: OnTextChanged) with an algorithm that searches for the validator with the error and focuses the relevant control. In order to find the validator with the error use the interface Ivalidator and Validors. Bye