Print Page | Close Window

Resources for validation

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=4000
Printed Date: 07-Sep-2025 at 7:18am


Topic: Resources for validation
Posted By: jkattestaart
Subject: Resources for validation
Date Posted: 20-Feb-2013 at 11:35pm
Hello,
 
I'm trying to add a resource type to my validation logica like this in the metadata (database first, silverlight, devforce 2010):

RequiredValueVerifier, RegexVerifier("Password", @"^.*(?=.{8,})(?=.*\d)(?=.*[a-zA-Z]).*$", ErrorMessageResourceType = typeof(AccoResource),ErrorMessageResourceName="Acco_Password")]

However this leeds to problems in finding the resource file when running the program.
I added the resource file in the DomainModel with a link to DomainModel.SL. The problem is that the namespace in de domainmodel is different from the silverlight link. Where do i put this resourcefile?  



Replies:
Posted By: jkattestaart
Date Posted: 21-Feb-2013 at 12:53pm
Ignore this: found this topic in the help....

verifierEngine.ErrorsResourceManager = MyErrorMessages.ResourceManager;




Print Page | Close Window