string[,] holiday = new string[13, 32];

    protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
    {
        holiday[7, 1] = "党的生日";
        CalendarDay c = e.Day;
        TableCell t = e.Cell;

        if (c.IsOtherMonth)
            t.Controls.Clear();
        else
        {
            string tmp = holiday[c.Date.Month, c.Date.Day];
            if(tmp!=null)
                t.Controls.Add(new LiteralControl("<br>"+tmp));

        }
    }

相关文章:

  • 2021-12-02
  • 2021-11-25
  • 2022-01-08
  • 2021-12-11
  • 2022-01-14
  • 2022-02-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2022-12-23
  • 2021-07-21
相关资源
相似解决方案