我做了一个。。不过刚开始就有错误。请指教一下
aspx:
<asp:calendar id="Calendar1" CellPadding="2" Width="160px" TitleStyle-BackColor="#000000" BorderColor="#aaaaaa"
DayHeaderStyle-BackColor="#5e715e" OtherMonthDayStyle-ForeColor="#cccccc" DayNameFormat="Full"
OnPreRender="Calendar1_PreRender" OnDayRender="Calendar1_DayRender"
runat="server" TitleStyle-ForeColor="#ffffff" NextPrevStyle-ForeColor="#ffffff" CellSpacing="1"
WeekendDayStyle-BackColor="#eeeeee" DayHeaderStyle-ForeColor="#ffffff" SelectionMode="None"
TodayDayStyle-BorderColor="#5e715e" TodayDayStyle-BorderWidth="1" TodayDayStyle-Font-Bold="true"
TodayDayStyle-ForeColor="#5e715e"/>cs:
private void Calendar1_PreRender(object sender, System.EventArgs e)
{
}
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
}错误提示 CS0122: 'blog_Public_Left.Calendar1_PreRender(object, System.EventArgs)' is inaccessible due to its protection levelSource Error:
Line 354: <asp:calendar id="Calendar1" CellPadding="2" Width="160px" TitleStyle-
aspx:
<asp:calendar id="Calendar1" CellPadding="2" Width="160px" TitleStyle-BackColor="#000000" BorderColor="#aaaaaa"
DayHeaderStyle-BackColor="#5e715e" OtherMonthDayStyle-ForeColor="#cccccc" DayNameFormat="Full"
OnPreRender="Calendar1_PreRender" OnDayRender="Calendar1_DayRender"
runat="server" TitleStyle-ForeColor="#ffffff" NextPrevStyle-ForeColor="#ffffff" CellSpacing="1"
WeekendDayStyle-BackColor="#eeeeee" DayHeaderStyle-ForeColor="#ffffff" SelectionMode="None"
TodayDayStyle-BorderColor="#5e715e" TodayDayStyle-BorderWidth="1" TodayDayStyle-Font-Bold="true"
TodayDayStyle-ForeColor="#5e715e"/>cs:
private void Calendar1_PreRender(object sender, System.EventArgs e)
{
}
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
{
}错误提示 CS0122: 'blog_Public_Left.Calendar1_PreRender(object, System.EventArgs)' is inaccessible due to its protection levelSource Error:
Line 354: <asp:calendar id="Calendar1" CellPadding="2" Width="160px" TitleStyle-
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货