View previous topic :: View next topic |
Author |
Message |
Scott
Joined: 14 Oct 2004 Posts: 11
|
Posted: Tue Oct 26, 2004 8:32 am Post subject: ASP.NET validatioin error messages positioning |
|
|
Hi,
I have 2 validation controls in my ASP.NET validating one and the same text field – RegularExpressionValidator and RequiredFieldValidator. My problem is that when only the RequiredFieldValidator fails it shows the error message, not immediately after the validated field, but is leaving huge space and displaying it after that.
Do you know how to fix that? I want the error message from either of the 2 validators to be displayed immediately after the text field being validated.
Thanks,
Scott |
|
Back to top |
|
|
administrator Site Admin
Joined: 01 Oct 2004 Posts: 183
|
Posted: Tue Oct 26, 2004 9:29 am Post subject: |
|
|
You'll have to set the Display property for yopur control to Dynamic:
Code: |
Display = "Dynamic"
|
This will display all error messages next to the validated control.
Cheers, _________________ Peter
ASP & ASP.NET Articles and Tutorials |
|
Back to top |
|
|
Scott
Joined: 14 Oct 2004 Posts: 11
|
Posted: Tue Oct 26, 2004 1:11 pm Post subject: |
|
|
Thanks Peter!
That did it!
Scott |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|