I'm using asp:Login control in my webpage, when I publish the website in the server, this control changes its language to english (should be spanish, the language I see when execute the site in my computer in local). I've been checking the Globalization
in IIS and culture reference is enabled. What else could be?
the Globalization in IIS and culture reference specifies the default culture for processing incoming Web requests, it should be this reason that changes language to English.
hope it helpful.
Regards
Please mark the replies as answers if they help or unmark if not.
Feedback to us
jos3
Member
8 Points
47 Posts
Asp:Login changes its language at publishing web
Oct 31, 2012 10:55 AM|LINK
Hi,
I'm using asp:Login control in my webpage, when I publish the website in the server, this control changes its language to english (should be spanish, the language I see when execute the site in my computer in local). I've been checking the Globalization in IIS and culture reference is enabled. What else could be?
Angie xu - M...
All-Star
18665 Points
1590 Posts
Microsoft
Re: Asp:Login changes its language at publishing web
Nov 01, 2012 02:28 AM|LINK
Hi
the Globalization in IIS and culture reference specifies the default culture for processing incoming Web requests, it should be this reason that changes language to English.
hope it helpful.
Regards
Feedback to us
Develop and promote your apps in Windows Store
jos3
Member
8 Points
47 Posts
Re: Asp:Login changes its language at publishing web
Nov 02, 2012 12:58 PM|LINK
I specified the globalization on IIS and the culture properties in the website like shows the images below:
And still keeps english language ¿?
EDIT: I have this line added in the Web.Config:
Angie xu - M...
All-Star
18665 Points
1590 Posts
Microsoft
Re: Asp:Login changes its language at publishing web
Nov 06, 2012 01:25 AM|LINK
Hi
Before your setting as you did, you need resource files in your project, and you could follow the steps in the links below:
Using Globalization and Localization in ASP.NET
Globalization and localization demystified in ASP.NET 2.0
and set enableClientBasedCulture="true"
Hope it helps you.
Regards
Feedback to us
Develop and promote your apps in Windows Store
jos3
Member
8 Points
47 Posts
Re: Asp:Login changes its language at publishing web
Nov 16, 2012 07:23 AM|LINK
This is how I resolved the issue:
Added Globalization in the Web.config
Added Culture in the Global.asax
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("es-ES"); Thread.CurrentThread.CurrentUICulture = new CultureInfo("es-ES");In the server, I installed this package to spanish language dotNetFx40LP_Full_x86_x64es
Thank you Angie xu
Angie xu - M...
All-Star
18665 Points
1590 Posts
Microsoft
Re: Asp:Login changes its language at publishing web
Nov 16, 2012 08:09 AM|LINK
Hi jos
Congratulations! I’m glad to hear that you have solved this issue by yourself, and it is very appreciated to share your solution to us.
Welcome to post your question on this forum in your future programming.
Kind regards
Angie xu
Feedback to us
Develop and promote your apps in Windows Store