Calendar question ?

Results 1 to 2 of 2

Thread: Calendar question ?

  1. #1
    Join Date
    Dec 1969

    Default Calendar question ?

    Hi, <BR> Im using a calendar control in my form. <BR> The controls default behavior is to show some of the Previous and Next Months days. For ex : For Feb 2004, the first row in the control shows the last week of Jan. <BR>How do I remove that ? <BR><BR>TIA, <BR> ajax

  2. #2
    Join Date
    Dec 1969

    Default RE: Calendar question ?

    I had the same frustration. I just tried this and it works, although I&#039;m not sure if I like how it looks.<BR><BR>First, define a CSS class:<BR><BR>&#060;style type="text/css"&#062;<BR>.clsOtherMonthDayStyle<BR>{<BR>displ ay : none;<BR>}<BR>&#060;/style&#062;<BR><BR>Then, with your calendar control, use the following:<BR><BR>&#060;asp:Calendar runat="server"&#062;<BR>&#060;OtherMonthDayStyle CssClass="clsOtherMonthDayStyle" /&#062;<BR>&#060;/asp:Calendar&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts