[RESOLVED] Change Calendar control attributes
I'm trying to change the attributes from a calendar control in framework 1.1. But whatever I do nothing changes what am I doing wrong? I also want to remove the underlining of the dates?
this.calendar = new Calendar();
this.calendar.BackColor = Color.Pink;
this.calendar.SelectedDate = DateTime.Now;
this.calendar.ShowDayHeader = true;
//TodayDayStyle.BackColor = Color.Chocolate;
[410 byte] By [
Visslan] at [2007-11-20 7:21:41]

# 1 Re: [RESOLVED] Change Calendar control attributes
your constructing a new calendar and adjusting its properites.
you should place the calendar on your aspx page and just reference it by its id name
like
this.myCalendarName.BackColor = Color.Pink
your line
this.calendar = new Calendar();
is creating a new calendar object that your editing, and im guessing that its not on the page. i think you can just drop that line and you should get it working
hth,
mcm
mcmcom at 2007-11-9 11:53:11 >
