localize the label to german language when the button clicked

Posted by Sindhuesh under ASP.NET on 7/15/2013 | Points: 10 | Views : 834 | Status : [Member] | Replies : 1
hi,
i want to localize the Welcome message(which is created in the code behind ) to German language. I have created the App_LocalResources folder and
Test.aspx.de-DE.resx ,Test.aspx.resx files. i have specified the name and value in both the files. here is the code


<asp:TextBox ID="txtName" runat="server" Width="87px"></asp:TextBox>
<asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Text="Submit" meta:resourcekey="lblMaster" />


if (Session["UserName"] != null)
{

Label lblMaster = (Label)Master.FindControl("lblMaster");
lblMaster.Text = "Welcome " + (Session["UserName"]).ToString();
}

its not displaying the welcome message in the German language.

Thanks for the help




Responses

Posted by: aswinialuri-19361 on: 7/30/2013 [Member] Starter | Points: 25

Up
0
Down
hi,
refer this link it might be helpfull to you
http://stackoverflow.com/questions/5349066/how-to-localize-my-app-with-xcode-4
http://www.dotnetcurry.com/ShowArticle.aspx?ID=174
http://msdn.microsoft.com/en-us/library/y99d1cd3(v=vs.71).aspx
after referring these link you can understand the localization

Mark as Answer if it helps you
Thanks&Regards
Aswini Aluri

Sindhuesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response