CalendarExtender Culture Problem

Last post 11-03-2009 8:29 AM by zither. 3 replies.

Sort Posts:

  • CalendarExtender Culture Problem

    03-31-2008, 5:48 PM
    • Member
      1 point Member
    • Laval1
    • Member since 03-31-2008, 9:42 PM
    • Posts 3

    Hi

    does anyone know how to set the culture language of the CalendarExtender to French so that the calendar popup would display in French

    Thanks

     

  • Re: CalendarExtender Culture Problem

    04-04-2008, 5:25 AM
    Answer

    Hi Laval1,

    For example,  

    <%@ Page Language="C#" Culture="ar-sa" UICulture="ar-sa"%>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <script runat="server">
    </script>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptLocalization="true" EnableScriptGlobalization="true">
        </asp:ScriptManager>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtDate" runat="server" Width="120px" AutoPostBack="true" EnableViewState="false"></asp:TextBox>
        <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate" Enabled="True" />
       
        </form>
    </body>
    </html>
    Also you should add the resource file to your bin directly.  For example, AjaxControlToolkit.resources.dll  You can find it under the samplewebsite/bin/fr 
    directory inside the Ajax Control Toolkit package.
    Best regards,
    Jonathan
     

     

    Jonathan Shen
    Microsoft Online Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Re: CalendarExtender Culture Problem

    04-07-2008, 12:49 PM
    • Member
      1 point Member
    • Laval1
    • Member since 03-31-2008, 9:42 PM
    • Posts 3

    thanks Jonathan

    this was helpfull

  • Re: CalendarExtender Culture Problem

    11-03-2009, 8:29 AM
    • Member
      4 point Member
    • zither
    • Member since 11-03-2009, 8:27 AM
    • Posts 2

    I wonder why the respone above was marked as "answer", although it doesn't work completely.

    what I got from that is "Arabic month names" but the year instead of 1431 it was 2009.


    how would that be solved?


    regards,

Page 1 of 1 (4 items)