Why do my ASP.NET pages render slowly when placed on the server?

前端 未结 7 442
忘了有多久
忘了有多久 2021-01-27 07:43

I have a simple aspx page with a GridView control. I\'m loading the GridView with search results after the click of a button. Everything works, but the HTML rendering on the bro

7条回答
  •  爱一瞬间的悲伤
    2021-01-27 08:16

    Why don't you want to use paging? 1.6 MB is a lot for the html of a page.

    Considering you already disabled viewstate, look into reducing the amount of html by:

    • Remove unnecessary columns
    • Use only css to style the gridview. The idea being not to repeat the same visual rules all over the HTML.
    • Avoid unnecessary markup in the columns. Look into any template columns you may have, and simplify the HTML in there (also using css to style it).

提交回复
热议问题