I'm looking for ways to improve the HTML performance of ASP.NET webpages using scrollable DataGrids... The larger the datagrid, the longer it takes for the webpage to display with the grid. That blank white page displaying for a few seconds between displays of the webpages can be annoying.
Supposedly if I were able to remove as much whitespace between HTML tags as possible and use as few HTML & web controls as possible, the performance should improve somewhat, so I've heard. Does anyone know of a way or DataGrid etc properties to force the HTML code auto-generated by the datagrid to do this?
Example of auto-generated HTML of a datagrid:
<tr>
<td>table data 1</td>
<td>table data 2</td>
</tr>
<tr>
<td>table data 3</td>
<td>table data 4</td>
</tr>
change to
<tr><td>table data 1</td><td>table data 2</td></tr><tr> <td>table data 3</td><td>table data 4</td></tr>
Any ideas would be appreciated - changing from a scrollable grid to a page-number grid or forcing a small amount of data to show on the datagrid are not really options that I'd want though. Thanks.
Supposedly if I were able to remove as much whitespace between HTML tags as possible and use as few HTML & web controls as possible, the performance should improve somewhat, so I've heard. Does anyone know of a way or DataGrid etc properties to force the HTML code auto-generated by the datagrid to do this?
Example of auto-generated HTML of a datagrid:
<tr>
<td>table data 1</td>
<td>table data 2</td>
</tr>
<tr>
<td>table data 3</td>
<td>table data 4</td>
</tr>
change to
<tr><td>table data 1</td><td>table data 2</td></tr><tr> <td>table data 3</td><td>table data 4</td></tr>
Any ideas would be appreciated - changing from a scrollable grid to a page-number grid or forcing a small amount of data to show on the datagrid are not really options that I'd want though. Thanks.