locked
Calendar control and TitleStyle CssClass Property not working? RRS feed

  • Question

  • User-2126029614 posted
    Hello all, I am trying to do some simple formatting of a calendar control using stylesheets. I cannot use the built in formatting properties like "BackgroundColor" and "Font-Size" because the calendar must be "skinnable" based on an external .css stylesheet. So, I'm defining my calendar control and setting the CssClass property for each of the style objects to a valid class. This works fine with all of the styles except TitleStyle. This guy will not apply a CssClass!! Here's an uber-simple sample: <asp:Calendar Runat="server" ID="_calCalendar" CssClass="DatePicker" ShowTitle="True"> <TitleStyle CssClass="DatePickerTitle" /> </asp:Calendar> My "DatePickerTitle" class just sets the background color. However it ain't rendering with that color. If I set the style properties right there in the tag, it works fine. Any ideas? I'm going insane here! - Brian
    Wednesday, January 29, 2003 6:08 PM

All replies

  • User-1769785422 posted
    You may want to take a look here[1] [1] http://weblogs.asp.net/vga/archive/2004/02/01/CalendarsBuggyStyleHandling.aspx
    Saturday, January 31, 2004 11:39 PM