In circumstances when you don't want to change the current month when checking for the beginning and ending dates of the next or previous you can use the calendar preview feature. The preview Calendar provides a preview area that displays a popup calendar for the previous or next calendar views (months). This functionality is available when you set the allowPreview option to True.
In Design View:
To preview the next calendar month, complete the following steps:
In Source View:
To set the AllowPreview property in source view, click the source tab and add the following code in your source file:
<cc1:WijCalendar ID="Panel1_WijCalendar" runat="server"
DisplayDate="04/23/2012 16:38:24"
TargetControlID="Panel1" TitleFormat="MMMM yyyy" AllowPreview="True"
NavButtons="None">
</cc1:WijCalendar>
This topic illustrates the following:
When the project is loaded, you can preview the next or previous month by hovering over the indicators on either side of the control: