localización de controles asp.net con clases personalizadas sin archivo resx

I have only 1 Label control in my test page called WebForm1.aspx.

<asp:Label ID="Label1" runat="server" Text="Label" 
    meta:resourcekey="Label1Resource1"></asp:Label>

I would like to localize it with out using .resx file yet using the concept of meta:resourcekey.

Some how I would like to autogenerate a strongly type class based on the localizable controls on my web .aspx page.

This strongly typed class would read the resource value from the database and cache it as opposed to reading it from .resx file. I would like to completely stay from .resx file for now.

But I really like the concept of meta:resourcekey where all the controls in .aspx page auto-magically are localized based on .resx file.

¿Es posible?

I have read through different pages on the internet and read up on things like ResXResourceReader and PublicResXFileCodeGenerator and read several other article but none address this specific design issue that I am addressing here.

Por favor, ayúdame.

Muchas Gracias

preguntado el 24 de agosto de 12 a las 01:08

1 Respuestas

Scott Guthrie posted some resources on this very topic.

Extending the ASP.NET 2.0 Localization Model with a Database Resource Provider

It's old, but the concepts are still just as relevant.

EDIT:

The important link is dead, but can be found here: http://msdn.microsoft.com/en-us/library/aa905797.aspx

Respondido 24 ago 12, 02:08

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.