<%@ 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
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
calendar extender is localized but not globalized. meaning you can get the month names as in different cultures but calculations aren't supported with needed Hijri calendar.
only way is to modify it to work like you want. no other option till the date of this post
"AJAX .NET 2.0" " "Ajax Control Toolkit" "calendar extender" "hijri"
Laval1
Member
1 Points
3 Posts
CalendarExtender Culture Problem
Mar 31, 2008 09:48 PM|LINK
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
Jonathan She...
All-Star
31269 Points
3445 Posts
Re: CalendarExtender Culture Problem
Apr 04, 2008 09:25 AM|LINK
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/frIf you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
Laval1
Member
1 Points
3 Posts
Re: CalendarExtender Culture Problem
Apr 07, 2008 04:49 PM|LINK
thanks Jonathan
this was helpfull
zither
Member
8 Points
4 Posts
Re: CalendarExtender Culture Problem
Nov 03, 2009 12:29 PM|LINK
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,
calendarextendar hijri arabic support
sshebly
Member
6 Points
3 Posts
Re: CalendarExtender Culture Problem
Mar 02, 2010 10:46 AM|LINK
hii.. I have tried the latest toolkit and the same problem with Hijri Year still exists.
have any one reached a solution?
Thanks in advance
zither
Member
8 Points
4 Posts
Re: CalendarExtender Culture Problem
Mar 02, 2010 11:34 AM|LINK
calendar extender is localized but not globalized. meaning you can get the month names as in different cultures but calculations aren't supported with needed Hijri calendar.
only way is to modify it to work like you want. no other option till the date of this post
"AJAX .NET 2.0" " "Ajax Control Toolkit" "calendar extender" "hijri"
sshebly
Member
6 Points
3 Posts
Re: CalendarExtender Culture Problem
Mar 02, 2010 01:06 PM|LINK
have you tried any modification that worked?.
zither
Member
8 Points
4 Posts
Re: CalendarExtender Culture Problem
Mar 02, 2010 01:46 PM|LINK
no not me, sorry
mohamedmahmo...
Member
27 Points
7 Posts
Re: CalendarExtender Culture Problem
Apr 14, 2010 01:38 PM|LINK
Did you manage to find a solution to the problem?
shivaji_shit...
Member
2 Points
1 Post
Re: CalendarExtender Culture Problem
Aug 16, 2011 06:27 AM|LINK
Hey anyone found solution to this problem?