Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Ajax calendar - how to change language?

Reply
Thread Tools

Ajax calendar - how to change language?

 
 
staeri@gmail.com
Guest
Posts: n/a
 
      01-19-2008
I have the standard Ajax calendar, like this:

<cc1:calendarextender targetcontrolid="txtOrderDate" format="yyyy-MM-
dd" runat="server"></cc1:calendarextender>

<asp:TextBox ID="txtOrderDate" Text='<%# Bind("OrderDate") %>'
runat="server" CssClass="textGrey11"></asp:TextBox>

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
 
Reply With Quote
 
 
 
 
Milosz Skalecki [MCAD]
Guest
Posts: n/a
 
      01-19-2008
Hi there,



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

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager runat="server" ID="manager"
EnableScriptLocalization="true" EnableScriptGlobalization="true" />
<asp:TextBox ID="txtOrderDate" runat="server" />
<cc1:CalendarExtender ID="ce" runat="server" Enabled="True"
TargetControlID="txtOrderDate"
OnClientDateSelectionChanged="function(sender, e) { sender.hide(); }"
Format="yyyy-MM-dd">
</cc1:CalendarExtender>
</div>
</form>
</body>
</html>

Note following attributes:

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

Hope it helps
--
Milosz


"" wrote:

> I have the standard Ajax calendar, like this:
>
> <cc1:calendarextender targetcontrolid="txtOrderDate" format="yyyy-MM-
> dd" runat="server"></cc1:calendarextender>
>
> <asp:TextBox ID="txtOrderDate" Text='<%# Bind("OrderDate") %>'
> runat="server" CssClass="textGrey11"></asp:TextBox>
>
> 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
>

 
Reply With Quote
 
 
 
 
staeri@gmail.com
Guest
Posts: n/a
 
      01-20-2008
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] <mily...@DONTLIKESPAMwp.pl>
wrote:
> Hi there,
>
> <%@ Page Language="C#" Culture="sv-SE" AutoEventWireup="true"
> CodeFile="Default4.aspx.cs"
> * * * * Inherits="Default4" %>
>
> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
> TagPrefix="cc1" %>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head runat="server">
> * * * * <title>Untitled Page</title>
> </head>
> <body>
> * * * * <form id="form1" runat="server">
> * * * * * * * * <div>
> * * * * * * * * * * * * <asp:ScriptManager runat="server" ID="manager"
> * * * * * * * * * * * * * * * * EnableScriptLocalization="true" EnableScriptGlobalization="true" />
> * * * * * * * * * * * * <asp:TextBox ID="txtOrderDate" runat="server" />
> * * * * * * * * * * * * <cc1:CalendarExtender ID="ce" runat="server" Enabled="True"
> TargetControlID="txtOrderDate"
> * * * * * * * * * * * * * * * * OnClientDateSelectionChanged="function(sender, e) { sender.hide(); }"
> Format="yyyy-MM-dd">
> * * * * * * * * * * * * </cc1:CalendarExtender>
> * * * * * * * * </div>
> * * * * </form>
> </body>
> </html>
>
> 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:

>
> > <cc1:calendarextender targetcontrolid="txtOrderDate" format="yyyy-MM-
> > dd" runat="server"></cc1:calendarextender>

>
> > <asp:TextBox ID="txtOrderDate" Text='<%# Bind("OrderDate") %>'
> > runat="server" CssClass="textGrey11"></asp:TextBox>

>
> > 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 -


 
Reply With Quote
 
Milosz Skalecki [MCAD]
Guest
Posts: n/a
 
      01-20-2008
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


"" 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] <mily...@DONTLIKESPAMwp.pl>
> wrote:
> > Hi there,
> >
> > <%@ Page Language="C#" Culture="sv-SE" AutoEventWireup="true"
> > CodeFile="Default4.aspx.cs"
> > Inherits="Default4" %>
> >
> > <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"
> > TagPrefix="cc1" %>
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> > <html xmlns="http://www.w3.org/1999/xhtml">
> > <head runat="server">
> > <title>Untitled Page</title>
> > </head>
> > <body>
> > <form id="form1" runat="server">
> > <div>
> > <asp:ScriptManager runat="server" ID="manager"
> > EnableScriptLocalization="true" EnableScriptGlobalization="true" />
> > <asp:TextBox ID="txtOrderDate" runat="server" />
> > <cc1:CalendarExtender ID="ce" runat="server" Enabled="True"
> > TargetControlID="txtOrderDate"
> > OnClientDateSelectionChanged="function(sender, e) { sender.hide(); }"
> > Format="yyyy-MM-dd">
> > </cc1:CalendarExtender>
> > </div>
> > </form>
> > </body>
> > </html>
> >
> > 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:

> >
> > > <cc1:calendarextender targetcontrolid="txtOrderDate" format="yyyy-MM-
> > > dd" runat="server"></cc1:calendarextender>

> >
> > > <asp:TextBox ID="txtOrderDate" Text='<%# Bind("OrderDate") %>'
> > > runat="server" CssClass="textGrey11"></asp:TextBox>

> >
> > > 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 -

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
AJAX IDE and AJAX TOOL--The Release of JoyiStar AJAX WebShop 3 Beta minnie Java 1 12-13-2006 06:29 AM
A Paradise DNS address change? What change? There was no change. Tony Neville NZ Computing 7 09-22-2006 01:02 PM
Thunderbird Calendar with Exchange 2003 Calendar and Public FoldersCalendar jincmcse Firefox 1 09-03-2005 02:46 AM
Calendar Control - Programatically set the calendar to a date range Shevek ASP .Net 3 06-23-2004 01:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57