[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?
Code:
this.calendar = new Calendar();
this.calendar.BackColor = Color.Pink;
this.calendar.SelectedDate = DateTime.Now;
this.calendar.ShowDayHeader = true;
//TodayDayStyle.BackColor = Color.Chocolate;
Re: 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
Code:
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
Re: Change Calendar control attributes
Re: Change Calendar control attributes
if it helped please rate the post.
thanks,
mcm