NoCoolHandle
Programmer
Hi..
I have a form that has mulitple textbox's that require validation.
To do this I had added a requiredfield validator to each of the needed textbox's.
What I can't seem to figure out, is that if someone clicks the "Submit" button, and a validator causes an error at the top of the form, how can you detect that at the "submit" (asp:button) that caused the event to fire and let someone know they need to correct something. Rather than assume that "nothing is happening" as they can't see the "[red]*[/red]".
I am thinking of just using ajax or adding validation via javascript or jquery, but if there is an easy way....
Thanks in advance
Rob
I have a form that has mulitple textbox's that require validation.
To do this I had added a requiredfield validator to each of the needed textbox's.
What I can't seem to figure out, is that if someone clicks the "Submit" button, and a validator causes an error at the top of the form, how can you detect that at the "submit" (asp:button) that caused the event to fire and let someone know they need to correct something. Rather than assume that "nothing is happening" as they can't see the "[red]*[/red]".
I am thinking of just using ajax or adding validation via javascript or jquery, but if there is an easy way....
Thanks in advance
Rob