protected override void Render(HtmlTextWriter writer) { // turn user control to html code string output = CalControl.RenderToString(calDate); MatchEvaluator mevm = new MatchEvaluator(AppendMonth); output = regPrevMonth.Replace(output, mevm); MatchEvaluator mevb = new MatchEvaluator(AppendYear); output = regNextMonth.Replace(output, mevb); // output the modified code writer.Write(output); }
private string AppendYear(Match m) { return(" " + CalControl.RenderToString(Ddyear)); }
private string AppendMonth(Match m) { return(CalControl.RenderToString(Ddmonth) + " "); }