Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.1
This is the forum to discuss the Wrox book Beginning ASP.NET 1.1 with Visual C#.NET 2003 by Chris Ullman, John Kauffman, Chris Hart, Dave Sussman, Daniel Maharry; ISBN: 9780764557088
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 14th, 2005, 07:07 PM
Registered User
 
Join Date: Dec 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using cssclass with OtherMonthDayStyle

I am trying to apply a cssclass to the OtherMonthDayStyle Attribute in a calendar.

<OtherMonthDayStyle cssclass="othermonthdate"></OtherMonthDayStyle>

In the css, I have:

.othermonthdate{
color:red;
}

However, the style is not being applied. The only way that I am able to apply a color to the OtherMonthDayStyle is to use the forecolor attribute instead of a class:

<OtherMonthDayStyle forecolor="red"></OtherMonthDayStyle>

This works but does not allow me to dynamically alter the color using style sheets. Any ideas?
 
Old April 19th, 2005, 04:49 PM
Registered User
 
Join Date: Dec 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Never mind. I figured it out.

I had the following code in EventCalendar_DayRender:

e.Cell.CssClass = "normaldate";

This was overriding the cssClass in the OtherMonthDayStyle tag.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Does the CssClass property works with AJAX ? tedhill BOOK: Beginning Ajax with ASP.NET 2 December 16th, 2006 08:53 AM
Push Button Column in DataGrid (CssClass) doonbug General .NET 0 July 20th, 2004 10:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.