- Create a file resources: "Master".
- Put it in App_GlobalResources dir,
- Add key - Menu_Contact.
- Create another file resources: "Master.he".
- Add key - Menu_Contact.
Set thread culture to "he-IL".
System.Threading.Thread.CurrentThread.CurrentCulture = System.Threading.Thread.CurrentThread.CurrentUICulture = (System.Globalization.CultureInfo)Session["Calture"];
Add markup to aspx file:
Here is the markup and line of test:
<a href="#">
<% Response.Write(Resources.Master.Menu_Contact); %>
<asp:Label runat="server" Text='<%$Resources:Master,Menu_Contact%>'></asp:Label>
</a>
The first option work, The markup not. What is wrong?