title: ASP.net For Loop Issue
body: <p>I have a problem with a For loop, it looks like this </p>
  
  <pre><code>for (int i = 0; i &lt; dt.Rows.Count; i++)
          //for (int i = 0; i &lt; System.Math.Min(dt.Rows.Count, 3); i++)
          {
              string date = Convert.ToDateTime(dt.Rows[i]["date"]).ToShortDateString();
              schedule[date] = (schedule[date] != null ? schedule[date].ToString() : "")    + Server.HtmlEncode(dt.Rows[i]["todo"].ToString()) + "&lt;br /&gt;" + dt.Rows[i]["time"].ToString() + "&lt;br /&gt;";
          }
          return schedule;
  </code></pre>
  
  <p>It's for a Calendar that I have made with an asp.net calendar control.
  It loops through all records into my Database and gives back my Schedule (records of that date) but I dont want to show more than 3 lines of text that you can add to the calendar(database record). Have you any idea how i can do this ?</p>
  
  <p>Thank you, kind regards, The Designer</p>