G
Guest
I tried to initialize a date in Calendar control with DayRender event handler
as the following code:
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e){
e.Cell.ForeColor = System.Drawing.Color.Pink;
Calendar1.SelectedDate = new DateTime(2002, 7,16);
}
The first line works by seeing pink color.
The second line does not work, that is the data.
Please advise. Thanks.
Peter
as the following code:
protected void Calendar1_DayRender(object sender, DayRenderEventArgs e){
e.Cell.ForeColor = System.Drawing.Color.Pink;
Calendar1.SelectedDate = new DateTime(2002, 7,16);
}
The first line works by seeing pink color.
The second line does not work, that is the data.
Please advise. Thanks.
Peter