• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

Calendar Web Form Dates

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?
0
Rowdyone52
Asked:
Rowdyone52
1 Solution
 
Expert1701Commented:
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)
  {
    if(e.Day.IsOtherMonth)
      e.Cell.Text = "";
  }
0
 
Bob LearnedCommented:
1) ASP.NET or WinForms?
2) .NET version?

Bob
0
 
Rowdyone52Author Commented:
ASP.Net 2003 - How do I access the DayRender Event.  I dont see that anywhere.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now