title: Calendar Control, DayRender function not executing
body: <p>I have a calendar in my aspx page that is as follows:</p>
  
  <pre><code>&lt;asp:Calendar ID="Calendar1" runat="server"&gt;&lt;/asp:Calendar&gt;
  </code></pre>
  
  <p>And the code behind is very simple. </p>
  
  <pre><code>protected void Calendar1_DayRender(object sender, DayRenderEventArgs e)
     {
  
      Response.Write("test");
      if (!e.Day.IsToday)
      {
          Label aLabel = new Label();
          aLabel.Text = " &lt;br&gt;test";
          e.Cell.Controls.Add(aLabel);
          date.Text = e.Day.ToString();
      }     
  }
  </code></pre>
  
  <p>My ultimate goal is to add text from a database for events but at the moment I cannot even make the function itself execute.  The response.writes are nowhere on the page and the word "test" does not appear on all of the dates except today (which is what should happen to my understanding).</p>