Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Select Case embedded in For Each Loop
I need some advice here. I'm trying to do form validation using Select Case statements embedded within a For Each Loop. Something isn't working correctly. I want it to display all error messages at once, but it is only displaying one at a time. Any clue what's wrong, or any other ideas in accomplishing this? Here is an example of what I've done so far:
For Each Field in Request.Form
Select Case Field
If [Validation Statment] Then
[Display Error Message]
0 · ·