views:

12

answers:

0

In short:

I have an SQL implementation of the IResourceProvider. So:

<asp:Literal id="id" text="<% $ Resources : Common, SomeResource %>" runat="server" />

works and I've created a helper so I can pass a string expression and get the same result:

<%=Html.Resource("Common, SomeResource") %>

I want to localize business content. Which way should / can i go?

1.) Preferred (don't know how to implement, needs custom ResourceProvider?):

<%=Html.Resource("SomeBusinessClass, " & id & ", SomeResource") %>

2.) Other solution (don't know if this is 'a good way to go'):

<%=Html.Resource("SomeBusinessClass_" & id & ", SomeResource") %>