Click to See Complete Forum and Search --> : [RESOLVED] Change Calendar control attributes


Visslan
April 25th, 2007, 02:57 AM
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;

mcmcom
April 25th, 2007, 09:50 AM
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

Visslan
April 26th, 2007, 05:37 AM
Thanks

mcmcom
April 26th, 2007, 01:59 PM
if it helped please rate the post.

thanks,
mcm