PC Review


Reply
Thread Tools Rate Thread

Calendar's skin does not take CssClass?

 
 
Bogdan
Guest
Posts: n/a
 
      5th Oct 2009
Hi,

I've been styling controls like GridView, Buttons, Labels, etc. using themes
(i.e. skin and css files). No issues with the above controls.

I'm not able to use CssClass within a skin for the Calendar control. For
example, the following works fine:
<asp:Calendar runat="server" BackColor="White" BorderColor="#b5c667"
BorderWidth="1px">

<TitleStyle BackColor="#b5c667" ForeColor="#ffffff" Font-Bold="True" />

<NextPrevStyle BackColor="#b5c667" ForeColor="#ffffff" Font-Bold="True" />

<DayStyle ForeColor="#336dcc" />

<TodayDayStyle BackColor="#eaf6fd" ForeColor="#336dcc"/>

<SelectedDayStyle BackColor="#ffe6a1" ForeColor="#336dcc" Font-Bold="True"
/>

</asp:Calendar>


.... but this does not:
Skin file:

<asp:Calendar runat="server" CssClass="cal">

<TitleStyle CssClass="calTitle" />

<DayStyle CssClass="calDay" />

<TodayDayStyle CssClass="calTodayDay" />

<SelectedDayStyle CssClass="calSelDay" />

</asp:Calendar>

Css file:

..cal

{

background-color: #ffffff;

}

..calTitle

{

background-color: #d1e07b;

}

..calDay

{

color: Blue;

}

..calTodayDay

{

background-color: #eaf6fd;

}

..calSelDay

{

background-color: #ff0000;

}


Is this a known thing?

Thanks,
Bogdan


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Laser Skin Treatment – A Popular Way Of Curing Various Skin Problems dr.jonver Microsoft Excel Worksheet Functions 0 11th Aug 2008 08:31 PM
Laser Skin Treatment – A Popular Way Of Curing Various Skin Problems dr.jonver Microsoft Outlook Discussion 0 11th Aug 2008 08:28 PM
GridView:HyperLink; how to set CssClass in Skin? Daves Microsoft ASP .NET 0 19th May 2006 01:41 PM
gridview skin, set cssclass for hyperlinks Daves Microsoft ASP .NET 0 12th May 2006 08:02 AM
calendar object with skin =?Utf-8?B?ZWx2aXM=?= Microsoft Dot NET 1 22nd Sep 2005 08:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:51 PM.