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); }
private string AppendMonth(Match m) { return(CalendarControl.RenderToString(ddlMonth)); }
private string AppendYear(Match m) { return(CalendarControl.RenderToString(ddlYear)); }