New Posts New Posts RSS Feed: Resources for validation
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Resources for validation

 Post Reply Post Reply
Author
jkattestaart View Drop Down
Newbie
Newbie


Joined: 30-Jul-2010
Location: Netherlands
Posts: 37
Post Options Post Options   Quote jkattestaart Quote  Post ReplyReply Direct Link To This Post Topic: Resources for validation
    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?  
Back to Top
jkattestaart View Drop Down
Newbie
Newbie


Joined: 30-Jul-2010
Location: Netherlands
Posts: 37
Post Options Post Options   Quote jkattestaart Quote  Post ReplyReply Direct Link To This Post Posted: 21-Feb-2013 at 12:53pm
Ignore this: found this topic in the help....

verifierEngine.ErrorsResourceManager = MyErrorMessages.ResourceManager;

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down