Last post Jul 08, 2008 08:14 AM by pbb
Jul 07, 2008 06:47 AM|chipheokhoc|LINK
If i used string then i get vaulekey throgh tag <%$Resources:NameResources,Valuekey%>
But i want to get longly text it's contain file inside globalresources file then how will i must to do?
Ex:i have two Contact_EN.txt and contact_VN.txt file then at Contact.aspx page when i want to load context of Contact_EN.txt and contact_VN.txt into Contact.aspx file.
Jul 08, 2008 08:14 AM|pbb|LINK
/App_GlobalResources/NameResources.en.resx should contain the code <data name="FileName"><value>Contact_EN.txt</value></data>
/App_GlobalResources/NameResources.vn.resx should contain the code <data name="FileName"><value>Contact_VN.txt</value></data>
Then in your code-behind, you use normal ASP.NET code to open the file Resources.NameResources.FileName and do what it is that you want to do with the file. This will open Contact_EN.txt if the user is English, and Contact_VN.txt if the user is Vietnamese.