I would like to use resource files to internationalize my .net application. I'm trying a little test on a field of my Login page :
<td class="libelleCnx" id="texteMdp" runat="server">
Mot de passe :</td>
I created the resource file with visual studio, it's in App_LocalData, it's named Login.resx and contains the follwing resource :
<data name="texteMotDePasse" xml:space="preserve">
<value>Ze password</value>
</data>
In my Login class, I try to use that resource like this:
protected ResourceManager manager = new ResourceManager("Login", typeof(Login).Assembly);
protected void Page_Load(object sender, System.EventArgs e)
{
...
texteMdp.InnerText = manager.GetString("Login.texteMotDePasse");
...
}
But I get a System.Resources.MissingManifestResourceException when trying to access my Login page...
I can modify the field with "texteMdp.InnerText = "stuff" " so I guess the problem is not with the field. I think that the Resource File is not detected... Anyone has an idea why ?
Thank you !