I have made extensive use of the standard .NET Validators - preventing submission of a page if (for example) the Date of Birth indicates that an individual is under 21 years of age. The Validators are configured to display an error icon next to the field and obviously they fire when focus is lost and/or when the user tries to submit the form.
I'm now investigating a similar requirement, but for warnings. So, again for example, the Date of Birth indicates that the an individual is over 80 years old (unusual, but not impossible). Here I want a different icon to appear when the user tabs away, and for a confirm popup (along the lines "of there are warnings, are you sure?) when the user submits the form.
Some of the pieces already exist (such as the Ajax Control Toolkit Confirm Button).
What I'm hoping for is a pointer towards the best way to handle the "under the covers" processing - things like collecting the "warning validators" together and firing them when submit is pressed - essentially a very close parallel to what the existing Validators do. I don't need the complexity of being able to repeat the checking server-side -- there is no point in warning the user for a second time and, if they bypass the client side checks for some reason, so what!
I guess then it's some Javascri
View Complete Post