C# Localization - unexpected behaviour
- by vikp
Hi,
I have the following line of code:
<%= Html.Label((string) GetLocalResourceObject("Label_Email")) %>
This generates a label within an HTML page.
In the local resource file I have the following entry:
Name: Label_Email
Value:Email
For some very strange reason when I load the page in the browser, it generates an HTML label with a value of "Email Address" instead of "Email". This is a serious problem for me because I need to localize the application and not have english word "address".
When I replace Value in the local resouce file with "Email " (notice extra space), everything works fine, but this is a hack and I need to understand why my application is behaving this way.
Thank you