How to set Links In Calendar Control’s DayRender Event?

By Goniey N (Mr. G)

To Set Link & Can Navigate URL....


protected void MyCalendar_DayRender(object sender, DayRenderEventArgs e)
{
    e.
Cell.Controls.Clear();
  
HyperLink HLink = new HyperLink();
    
HLink.Text = e.Day.Date.Day;
    HLink.NavigateUrl = <<Set Here URL For Open It>>;
    e.
Cell.Controls.Add(HLink);
}

How to set Links In Calendar Control’s DayRender Event?  (1138 Views)