Calendar Web Form Dates

Posted on 2006-04-11
Last Modified: 2010-04-16
I have a strange question.  On my calendar object I show this month's date and it also shows the previous months 6 days and next month's 4 days to fill the calendar.  How can I hide these days from showing, so that I only show the current month?
Question by:Rowdyone52
    LVL 11

    Accepted Solution

    In the DayRender event of your calendar, you could put something to the effect of:

      private void Calendar_DayRender(object sender, System.Web.UI.WebControls.DayRenderEventArgs e)
          e.Cell.Text = "";
    LVL 96

    Expert Comment

    by:Bob Learned
    1) ASP.NET or WinForms?
    2) .NET version?


    Author Comment

    ASP.Net 2003 - How do I access the DayRender Event.  I dont see that anywhere.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
    Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now