Hi,

it will not have any sideeffect for the JavaScriptSerializer, because
these parts are written using the JavaScript notation. If you want to
modify the culture you can simply do something like this in
global.asax:

void Application_BeginRequest(Object sender, EventArgs e)
{
    Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB");
    Thread.CurrentThread.CurrentUICulture = new CultureInfo("en");
}

If you do not specify the culture it will use the common way as
calling an ASP.NET page.

Regards,
Michael



On 5/31/06, Albert Weinert <[EMAIL PROTECTED]> wrote:
>
> Jochen Jonckheere schrieb:
>
> > When I create a ResourceManager in an AjaxMethod it doesn't return the
> > resource I expected.  The problem is that the
> > CurrentThread.CurrentCulture is wrong.
> >
> > Is there a fix for this?
>
> The "Problem" is the every HttpHandler has to specify a culture for
> itself. There is no mechanism like in the Page-Class.
>
> But it may helps if Ajax.NET Pro do a Callback to a specified method at
> the beginning of the Request, and within that request Ajax.NET ask the
> Application for setting the Culture.
>
> This maybe have some sideeffect on the JavaScriptSerializer. So the
> Serializer must be adapted to be Convert with a specified en-US Culture,
> because JavaScript don't like localized Dates and Numberformats.
>
>
> --
> Freundliche Grüße
>
> Albert Weinert
>
> http://der-albert.com
>
> >
>


-- 
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to