Latest web development tutorials

ASP.NET Calendar ShowNextPrevMonth property

Calendar Control Calendar Control

Definition and Usage

ShowNextPrevMonth attribute is used to specify whether to display a link in the calendar month and last month.

By default, this property is set to TRUE, the link is displayed next month and last month. To remove the link, the property must be set to FALSE.

grammar

<asp:Calendar ShowNextPrevMonth="TRUE|FALSE" runat="server" />


Examples

The following examples set the ShowNextPrevMonth FALSE:

<form runat="server">
<asp:Calendar id="cal1" runat="server"
ShowNextPrevMonth="FALSE" />
</form>

The demonstration >>

Calendar Control Calendar Control