zoukankan      html  css  js  c++  java
  • 2222222222222222222

    public class Test : System.Web.UI.Page

    {

    protected
    System.Web.UI.WebControls.Calendar Calendar1;

    private
    System.Threading.Thread t;

    private
    CultureInfo oldCulture;



    private void Page_Load(object
    sender, System.EventArgs e)

    {

    // 在此处放置用户代码以初始化页面


    }




    Web 窗体设计器生成的代码



    private void Calendar1_DayRender(object sender, System.Web.UI.WebControls.DayRenderEventArgs e)

    {

    t.CurrentCulture
    =this
    .oldCulture;

    }




    private void Calendar1_PreRender(object sender, System.EventArgs e)

    {

    t
    =
    System.Threading.Thread.CurrentThread;

    oldCulture
    =
    t.CurrentCulture;

    CultureInfo newci
    =
    (CultureInfo)oldCulture.Clone();

    newci.DateTimeFormat.DayNames
    =new string[]{"","","","","","",""}
    ;

    newci.DateTimeFormat.FirstDayOfWeek
    =
    DayOfWeek.Sunday;

    t.CurrentCulture
    =
    newci;

    }


    }



  • 相关阅读:
    用Interface Builder自定义View
    UINavigationController
    pod install 失败
    关于@synchronized(self)的用法(转)
    杂记
    理解REST软件架构
    ios NSNotificationCenter消息注册与撤销
    UIApplication sharedApplication详细解释-IOS
    ios 数据持久化的三种方式
    '*.h' file not found
  • 原文地址:https://www.cnblogs.com/xyy/p/19740.html
Copyright © 2011-2022 走看看