C# Localization - unexpected behaviour

Posted by vikp on Stack Overflow See other posts from Stack Overflow or by vikp
Published on 2010-05-20T15:36:35Z Indexed on 2010/05/23 5:20 UTC
Read the original article Hit count: 349

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about html

Related posts about email