如何将日历控件里面的字改成英文啊??
真的没折了,帮忙啊!

解决方案 »

  1.   

    1.在web.config中配置如下信息
    <appSettings>
    <add key="DefaultCulture" value="zh-cn" />
            <add key="CNCulture" value="zh-cn" />
            <add key="ENCulture" value="en-us" />
    </appSettings>2.在Global.asax中Application_BeginRequest写如下内容,需要显示中文就读取CNCulture,英文就读取ENCulture,默认读取DefaultCulture
    protected void Application_BeginRequest(Object sender, EventArgs e)
    {
    try
    { Thread.CurrentThread.CurrentCulture=new CultureInfo(ConfigurationSettings.AppSettings["CNCulture"].ToString()); Thread.CurrentThread.CurrentUICulture=Thread.CurrentThread.CurrentCulture;
    }
    catch(Exception)
    {
    Thread.CurrentThread.CurrentCulture=new CultureInfo(ConfigurationSettings.AppSettings["DefaultCulture"].ToString());
    }}
    然后就ok了