How to hide ‘other months’ in a Calendar Control

Platform: ASP.NET|Category: Calendar

In the Calendar DayRender Event

VB.NET

If e.Day.IsOtherMonth = True Then
	e.Cell.Text = ''
End If

C#

if (e.Day.IsOtherMonth = true)
{
            e.Cell.Text = '';
}