string[,] myday;
public void CreateDay()
{
myday = new string[13, 32];
myday[1, 1] = "元旦";
myday[2, 14] = "情人节";
myday[3, 8] = "妇女节";
myday[4, 1] = "愚人节";
myday[5, 1] = "劳动节";
myday[6, 1] = "儿童节";
myday[7, 1] = "建党节";
myday[8, 1] = "建军节";
myday[9, 10] = "教师节";
myday[10, 1] = "国庆节";
myday[12, 24] = "圣诞节";
}
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
CreateDay();
if (myday[e.Day.Date.Month, e.Day.Date.Day] != null)
{
Literal lbl = new Literal();
lbl.Text = "<br>"+myday[e.Day.Date.Month, e.Day.Date.Day];
e.Cell.Controls.Add(lbl);
}
}