Forum Moderators: open
Has anyone done any thinking on this? Are there any good 3rd party controls I should look at?
Thanks for any input.
PS It apears this board tends to be somewhat advanced and doesn't have a ton of traffic. Having said that it would seem that a bunch of newbie questions could quickly become somewhat of an annoyance. Is there a more appropriate forum elsewhere for someone trying to teach themselves asp.net?
Thanks again!
There actually already are some custom controls for doing field level validation. They do client-side validation if the client has javascript turned on, but also always do server-side validation, so there is no way to bypass the validation by browser settings or hacking. They are really cool. I haven't really played with them except demo code, but take a look at the Required Field Validator, Compare Validator, Range Validator, Regular Expression Validator, and Custom Validator controls.
I am using Required Field Validator and Range Validator controls, but the way they work is they do a javascript document.write() thing to generate text on the page before posting back to the server. The question is where do you place these controls so that user doesn't become confused? See my form is rather long and it must be that way. So there is some vertical scrolling, so if I put a validation control next to the field at the top user will not see that there is a problem and will keep hitting submit button to no avail. If I place all of the error messages near submit button the users will get irritated about scrolling up. What would you do? Is there a way to make these web form controls pop up error message boxes of the alert() type?
Thanks!