protected override void Render(HtmlTextWriter writer) { // turn user control to html code string output = CalControl1.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(" " + CalControl1.RenderToString(Ddyear)); }
private string AppendMonth(Match m) { return(CalControl1.RenderToString(Ddmonth) + " "); }