ASP.NET - What is the best practice for reading localized strings from an XML file?

I got the task to localize the site and save all string values ​​in an XML file. The reason is to allow sys. admin to change the localized values ​​yourself by editing the XML file.

Should I read the contents of the XML file and store it in memory when the application starts? I guess there is best practice for such a scenario. Any help would be greatly appreciated!

Thank!

+3
source share
2 answers

ASP.NET / (http://msdn.microsoft.com/en-us/library/c6zyy3s9.aspx). / - - ,

<asp:Button ID="Button1" runat="server" Text="XY" meta:resourcekey="Button1" /> 
<asp:Button ID="Button1" runat="server" Text="<%$ Resources:WebResources, Button1Caption %>" />

XML , , XML . , .

. , , sql - xml .

+2

Source: https://habr.com/ru/post/1791939/


All Articles