Ajax calendar - how to change language?

Ajax calendar - how to change language?

am 19.01.2008 09:36:56 von staeri

I have the standard Ajax calendar, like this:



runat="server" CssClass="textGrey11">

1. How can I change the language to Swedish in the calendar?
2. After postback the date in txtOrderdate is shown as: 2008-01-19
00:00, I just want to show 2008-01-19. How can that be done?

Very grateful for help!

// S

RE: Ajax calendar - how to change language?

am 19.01.2008 16:46:00 von mily242

Hi there,



<%@ Page Language="C#" Culture="sv-SE" AutoEventWireup="true"
CodeFile="Default4.aspx.cs"
Inherits="Default4" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
TagPrefix="cc1" %>
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Untitled Page




EnableScriptLocalization="true" EnableScriptGlobalization="true" />

TargetControlID="txtOrderDate"
OnClientDateSelectionChanged="function(sender, e) { sender.hide(); }"
Format="yyyy-MM-dd">






Note following attributes:

- <%@ Page %> directive: Culture="sv-SE"
- ScripManager: EnableScriptLocalization="true"
EnableScriptGlobalization="true"
- CalendarExtender : Format="yyyy-MM-dd"

Hope it helps
--
Milosz


"staeri@gmail.com" wrote:

> I have the standard Ajax calendar, like this:
>
>
>
> > runat="server" CssClass="textGrey11">
>
> 1. How can I change the language to Swedish in the calendar?
> 2. After postback the date in txtOrderdate is shown as: 2008-01-19
> 00:00, I just want to show 2008-01-19. How can that be done?
>
> Very grateful for help!
>
> // S
>

Re: Ajax calendar - how to change language?

am 20.01.2008 10:24:32 von staeri

Thank you very much for the help!

The language was changed in the calender, except for "Today" at the
bottom of the calendar. How can that also be changed?

After postback the date in txtOrderdate is still shown as: 2008-01-19
00:00, I just want to show 2008-01-19. How can that be done?

Best regards,

S

On 19 Jan, 16:46, Milosz Skalecki [MCAD]
wrote:
> Hi there,
>
> <%@ Page Language=3D"C#" Culture=3D"sv-SE" AutoEventWireup=3D"true"
> CodeFile=3D"Default4.aspx.cs"
> =A0 =A0 =A0 =A0 Inherits=3D"Default4" %>
>
> <%@ Register Assembly=3D"AjaxControlToolkit" Namespace=3D"AjaxControlToolk=
it"
> TagPrefix=3D"cc1" %>
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
>
> =A0 =A0 =A0 =A0 Untitled Page
>
>
> =A0 =A0 =A0 =A0


> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0

> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D"server" ID=3D"manager"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 EnableScri=
ptLocalization=3D"true" EnableScriptGlobalization=3D"true" />
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 rDate" runat=3D"server" />
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =3D"ce" runat=3D"server" Enabled=3D"True"
> TargetControlID=3D"txtOrderDate"
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 OnClientDa=
teSelectionChanged=3D"function(sender, e) { sender.hide(); }"
> Format=3D"yyyy-MM-dd">
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0

> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0

> =A0 =A0 =A0 =A0

>
>
>
> Note following attributes:
>
> - <%@ Page %> directive: Culture=3D"sv-SE"
> - ScripManager: EnableScriptLocalization=3D"true"
> EnableScriptGlobalization=3D"true"
> - CalendarExtender : Format=3D"yyyy-MM-dd"
>
> Hope it helps
> --
> Milosz
>
>
>
> "sta...@gmail.com" wrote:
> > I have the standard Ajax calendar, like this:
>
> > -
> > dd" runat=3D"server">

>
> > '
> > runat=3D"server" CssClass=3D"textGrey11">

>
> > 1. How can I change the language to Swedish in the calendar?
> > 2. After postback the date in txtOrderdate is shown as: 2008-01-19
> > 00:00, I just want to show 2008-01-19. How can that be done?
>
> > Very grateful for help!
>
> > // S- Dölj citerad text -
>
> - Visa citerad text -

Re: Ajax calendar - how to change language?

am 20.01.2008 13:16:00 von mily242

What version of AjaxControlToolkit are you using? Make sure you've updated to
the latest release. "Today" problem may be related to lack of satelite
assebly with Swedish language.
--
Milosz


"staeri@gmail.com" wrote:

> Thank you very much for the help!
>
> The language was changed in the calender, except for "Today" at the
> bottom of the calendar. How can that also be changed?
>
> After postback the date in txtOrderdate is still shown as: 2008-01-19
> 00:00, I just want to show 2008-01-19. How can that be done?
>
> Best regards,
>
> S
>
> On 19 Jan, 16:46, Milosz Skalecki [MCAD]
> wrote:
> > Hi there,
> >
> > <%@ Page Language="C#" Culture="sv-SE" AutoEventWireup="true"
> > CodeFile="Default4.aspx.cs"
> > Inherits="Default4" %>
> >
> > <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
> > TagPrefix="cc1" %>
> > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> >
> >
> > Untitled Page
> >
> >
> >


> >

> > > > EnableScriptLocalization="true" EnableScriptGlobalization="true" />
> >
> > > > TargetControlID="txtOrderDate"
> > OnClientDateSelectionChanged="function(sender, e) { sender.hide(); }"
> > Format="yyyy-MM-dd">
> >

> >

> >

> >
> >
> >
> > Note following attributes:
> >
> > - <%@ Page %> directive: Culture="sv-SE"
> > - ScripManager: EnableScriptLocalization="true"
> > EnableScriptGlobalization="true"
> > - CalendarExtender : Format="yyyy-MM-dd"
> >
> > Hope it helps
> > --
> > Milosz
> >
> >
> >
> > "sta...@gmail.com" wrote:
> > > I have the standard Ajax calendar, like this:
> >
> > >
> >
> > > > > > runat="server" CssClass="textGrey11">
> >
> > > 1. How can I change the language to Swedish in the calendar?
> > > 2. After postback the date in txtOrderdate is shown as: 2008-01-19
> > > 00:00, I just want to show 2008-01-19. How can that be done?
> >
> > > Very grateful for help!
> >
> > > // S- Dölj citerad text -
> >
> > - Visa citerad text -
>
>