title: ASP.NET page contains dynamic elements, loading takes time
body: <p>I am dynamically creating a table of checkboxes on my test.aspx page. The dimensions (row and column count) of the table are determined by querying the database.</p>
  
  <p>In test.aspx page, I do the following:</p>
  
  <pre><code>&lt;script language="C#" runat="server"&gt;
  
  protected void Page_Load ( object src, EventArgs e ) {
     //Query the database to get the data for rows and columns
  
     CheckBox[] chkBox = new CheckBox[rows * columns]; //creates a collection of checkboxes
  
     //Iterate over the query set in a double for loop to create dynamic checkboxes
  }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Right now I have the number of rows=20 and columns=10, but it can increase (with the columns more likely).</p>
  
  <p>I used the Net tab in Firebug to ascertain the time taken by different events and found that GetTest.aspx is taking close to 4 minutes, which is too long a time to wait.</p>
  
  <p>Is there a way to being down the page load time? Is my approach to create dynamic check boxes correct?</p>
  
  <p>Thanks in advance.</p>
  
  <p>cheers</p>