how Read Validation Message from Resource file

how Read Validation Message from Resource file

Old forum URL: forums.lhotka.net/forums/t/10144.aspx


wasiuddin.786 posted on Wednesday, March 09, 2011

i have two two project fro business model

 

1)Model.Client

2)Model.Server

 

so how to add the resource file to server and how to add the link to client side

please give me steps so i can read the validation massage from resource file

 

it will should work client and serverside validation

 

 

 

JonnyBee replied on Wednesday, March 09, 2011

Resource files are not so easily shared between assemblies by linking so I'd suggest to add resources in a common location.

1. Add a Model.Common assembly
2. Add resource strings to this assembly resource file.
3. Change AccessModifier on the resources in Model.Common from Internal to Public

Your resources will then be places into one assembly, will only need to be translated once and can be used in assemblies that reference Model.Common.

wasiuddin.786 replied on Thursday, March 10, 2011

but i saw in csla and csla.silverlight they using reource file from property addlink to csla.silverlight

 

can we do like that

please tell me the steps for

model.client

model.server

 

Copyright (c) Marimer LLC