ASP Hosting sale!
Double disk space and transfer for FREE!
Limited time offer! Act Now!

aspdev | articles | tutorials | forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ASP.NET validatioin error messages positioning

 
Post new topic   Reply to topic    ASPdev.org Forum Index -> .NET Programming (ASP.NET, VB.NET, C#)
View previous topic :: View next topic  
Author Message
Scott



Joined: 14 Oct 2004
Posts: 11

PostPosted: Tue Oct 26, 2004 8:32 am    Post subject: ASP.NET validatioin error messages positioning Reply with quote

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
View user's profile Send private message
administrator
Site Admin


Joined: 01 Oct 2004
Posts: 183

PostPosted: Tue Oct 26, 2004 9:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Scott



Joined: 14 Oct 2004
Posts: 11

PostPosted: Tue Oct 26, 2004 1:11 pm    Post subject: Reply with quote

Thanks Peter!

That did it!


Scott
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ASPdev.org Forum Index -> .NET Programming (ASP.NET, VB.NET, C#) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

SQL Tutorial