コード例 #1
0
    protected override void Render(HtmlTextWriter writer)
    {
        // turn user control to html code
        string output = CalendarControl.RenderToString(calDate);

        MatchEvaluator mevm = new MatchEvaluator(AppendMonth);

        output = regPrevMonth.Replace(output, mevm);

        MatchEvaluator mevy = new MatchEvaluator(AppendYear);

        output = regNextMonth.Replace(output, mevy);
        // output the modified code
        writer.Write(output);
    }
コード例 #2
0
 private string AppendMonth(Match m)
 {
     return(CalendarControl.RenderToString(ddlMonth));
 }
コード例 #3
0
 private string AppendYear(Match m)
 {
     return(CalendarControl.RenderToString(ddlYear));
 }