Thursday, February 24, 2011

Inline tags and method for ASP.NET Globalization and Localization

Inline tags and method for ASP.NET Globalization and Localization
http://msdn.microsoft.com/en-us/library/ms228093(v=vs.80).aspx

Implicit localization: (Local resource Resx file)
<asp:Button ID="Button1" runat="server" Text="DefaultText"
    meta:resourcekey="Button1" />


Explicit localization: (Global resource file)
<asp:Button ID="Button1" runat="server"
    Text="<%$ Resources:WebResources, Button1Caption %>" />


By method:
GetLocalResourceObject
http://msdn.microsoft.com/en-us/library/ms149952.aspx

No comments:

Post a Comment