Exemple #1
0
        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);
        }
Exemple #2
0
 private string AppendYear(Match m)
 {
     return("&nbsp" + CalControl.RenderToString(Ddyear));
 }
Exemple #3
0
 private string AppendMonth(Match m)
 {
     return(CalControl.RenderToString(Ddmonth) + "&nbsp");
 }