ASP .Net Calendar control is a great tool for showing event calendars etc. If you want to show or hide the next/previous links you can set the NextMonthText and PrevMonthText property. Here is an example of how to do that.protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack){
calendar.VisibleDate = DateTime.Now;
}
}
protected void Calendar_PreRender(object sender, EventArgs e)
{
// we will show next 3 months from now in this example
DateTime dtMin = DateTime.Now;
DateTime dtMax = DateTime.Now.AddMonths(2);
Response.Write(”<div class=white>aaaaaaaaaaaaaaaa” + dtMin.CompareTo(calendar.VisibleDate) + “</div>”);
if (calendar.VisibleDate.Year == dtMax.Year && calendar.VisibleDate.Month == dtMax.Month)
{
calendar.NextMonthText = string.Empty;
}
else
{
calendar.NextMonthText = “>”;
}
if (calendar.VisibleDate.Year == dtMin.Year && calendar.VisibleDate.Month==dtMin.Month)
{
calendar.PrevMonthText = string.Empty;
}
else
{
calendar.PrevMonthText = “<”;
}
}
Source: cosmocentral.com/2009/03/showhide-next-previous-links-on-calendar-control-asp-net/