13.07.2015 Views

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

256<strong>ASP</strong>.<strong>NET</strong> <strong>3.5</strong>: A Beginner’s <strong>Guide</strong>}}switch (dow){case "Monday" :e.Cell.Controls.Add(new System.Web.UI.LiteralControl(soccer));break;case "Wednesday":e.Cell.Controls.Add(new System.Web.UI.LiteralControl(ballet));break;case "Friday":e.Cell.Controls.Add(new System.Web.UI.LiteralControl(baseball));break;}Once you’ve finished, test it. Figure 10-3 shows what you should see.As you can see from Figure 10-3, not only is the current month set up with the schedule,so too are the rest of the months. If you have a yearly schedule, this simple program is quitehandy. Otherwise, you need to include the range of time that the schedule is applicable.Figure 10-3 Adding text <strong>com</strong>ments to Calendar

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!