ASP.NET ShowNextPrevMonth Property
Definition and Usage
The ShowNextPrevMonth property is used to specify whether the Calendar control displays the navigation elements for the previous and next months in the title section.
It is true if the Calendar displays the navigation elements for the previous and next months in the title section; otherwise, it is false. The default value is true.
Syntax
<asp:Calendar ShowNextPrevMonth="TRUE|FALSE" runat="server" />
Example
The following example sets ShowNextPrevMonth to FALSE:
<form runat="server"> <asp:Calendar id="cal1" runat="server"> ShowNextPrevMonth="FALSE" /> </form>
Example
- Delete the navigation links of the previous and next months in the Calendar control