All months which begin on a Friday or a Saturday
need to display 6 lines, because there's 4 complete
weeks and 2 partial weeks in them.
To display a calendar so that the months which *can* display in
5 lines (the months which start on Sun, Mon, Tue, Wed or Thu)
do display in 5 lines, set the ForeColor and BackColor properties
for the "OtherMonthDay Style" to white.
<asp:Calendar ID="Calendar1" runat="server" OtherMonthDayStyle-BackColor="White"
OtherMonthDayStyle-ForeColor="White"></asp:Calendar>
If you have set the Calendar's BackColor to any other color
but white, set the "OtherMonthDay Style" to whatever BackColor
you set the Calendar's BackColor to.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ :
http://asp.net.do/faq/
Foros de ASP.NET en Español :
http://asp.net.do/foros/
======================================
"Jack" <ls*****@gmail.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
In Asp.Net Calender control, how to display 5 lines if there are only 5
lines in one month? Now there are 6 lines even that I don't show the
data in other months.