借鑑其他網站的內容
ajax 提供了calendar 控件,可是界面爲英文。
在 AJAXASP.NET.CN 找到了問題的答案。
解決方法如下:
當前頁面的語言設置爲:中文(中華人民共和國) 它將根據瀏覽器的語言選擇進行變化。 這裏我們需要設置兩個頁面屬性 Culture="auto" 和 UICulture="auto"。你可以在 MSDN上獲得更多的這方面的資料,
MSDN 文章。
需要適應多語言的條件還有一個就是,在頁面上的 ScriptManager 需要設置兩個屬性:EnableScriptGlobalization="true" 和 EnableScriptLocalization="true".
轉載自http://www.ajaxasp.net.cn/Demos/Calendar/Calendar.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Calender.aspx.cs" Inherits="Calender" Culture="auto" UICulture="auto"%>
<asp:ScriptManager id="ScriptManager1" runat="server"
EnableScriptGlobalization="true" EnableScriptLocalization="true">
</asp:ScriptManager>