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