ASP.NET Calendar ShowNextPrevMonthProperty
Calendar control
Definition and Usage
The ShowNextPrevMonth property is used to specify whether to display the links for the next month and the previous month in the calendar.
By default, this property is set to TRUE, which displays the links for the next and previous months. To remove the links, this property must be set to FALSE.
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>
<asp:Calendar id="cal1" runat="server"
ShowNextPrevMonth="FALSE" />
</form>
Demo Example »
Calendar control Other extensions