Groups | Blog | Home
all groups > asp.net > april 2006 >

asp.net : Two resource file for one single culture


pradeep_TP
4/23/2006 10:16:02 PM
Hello,

I want to know whether it is possible to have two sets of resource file one
single culture in ASP.net 2.0. I have a project in which there are two
clients from Germany. I want to share the common code base between these two
clients. I need to keep two separate resource files that will contain
separate data for both the german client. Any idea how this can be done?

thanks
prabhupr NO[at]SPAM hotmail.com
5/2/2006 6:28:34 PM
How about having a single resource file, but defining 2 sets of TAGs
within your resource file?
The naming of TAG can b prefixed with Customer name, for example

<C1-FirstName></C1-FirstName>
<C1-LastName></C1-LastName>

<C2-FirstName></C2-FirstName>
<C2-LastName></C2-LastName>

In your web.config file, define a item <customer> node where you can
set/define the value as "C1" or "C2", and then in your code you display
required node value by prepending the customer+<TAG?

Thanks helps?
AddThis Social Bookmark Button