Hi List.

I need help, i'm using the calendar control, which defined as following:

<asp:calendar id="Calendar1" style="Z-INDEX: 101; LEFT: 8px; POSITION:
absolute; TOP: 8px" runat="server"
OnVisibleMonthChanged="Calendar1_VisibleMonthChanged"
NextMonthText=">" 
PrevMonthText="<" 
OnDayRender="Calendar1_DayRender" DayNameFormat="FirstLetter"
Width="200px"
Font-Names="Arial" Font-Size="8pt">
</asp:calendar>

The OnVisibleChanged and OnDayRender are defined as

protected void Calendar1_VisibleMonthChanged(System.Object sender,
System.Web.UI.WebControls.MonthChangedEventArgs e)
{
    fecha_mes_actual = Calendar1.VisibleDate;
    hdnMesAnno1.Value = fecha_mes_actual.ToString("MM/yyyy");
    fecha_mes_prox = fecha_mes_actual.AddMonths(1);
}

protected void Calendar1_DayRender(System.Object sender,
System.Web.UI.WebControls.DayRenderEventArgs e)
{
    if (e.Day.Date < System.DateTime.Today || e.Day.IsOtherMonth)
    {
        e.Cell.ForeColor = System.Drawing.Color.FromArgb(0, 200, 200, 200);
        e.Cell.Attributes.Add("onclick", "return Null()");
    }
    else
        e.Cell.Attributes.Add("onclick", "return ClickCal1(this)");
}

However, the following message appears when i try to display the page:

`ASP.calendario_aspx' does not contain a definition for
`Calendar1_DayRender' and no extension method `Calendar1_DayRender' of
type `ASP.calendario_aspx' could be found (are you missing a using
directive or an assembly reference?)

Why appears this error, if I are declaring the function correctly and it
is not missed?

Somebody can tell me what I am doing bad?

I'm using mono 2.0 under Ubuntu Linux 8.04

Thanks!!

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to