I have a page with two gridviews to template item using HTML tables, that refresh each 20 seconds that loads a realtime data from csv stream , when page is loaded the size is 30KB and it runs 24/7 , the admins reported that 30KB is consuming a lot of bandwidth
over month and the size should be optimized , I did all what I know to reduce white spaces, minimal use of control as I'm rendering data directly in cells,
First, I suggest that you should disable the ViewState of your controls in your gridview .It would be better to reduce the page size if you can disable the gridview ViewState without impacting on your programme.
Second, I suggest that you can try to use Ajax to partical refresh your gridview so that you don't need to request a whole page from the server side.
Member
4 Points
34 Posts
ASP.NET Page size
Nov 30, 2014 08:02 AM|SharpRan|LINK
I have a page with two gridviews to template item using HTML tables, that refresh each 20 seconds that loads a realtime data from csv stream , when page is loaded the size is 30KB and it runs 24/7 , the admins reported that 30KB is consuming a lot of bandwidth over month and the size should be optimized , I did all what I know to reduce white spaces, minimal use of control as I'm rendering data directly in cells,
I'm using following method to reload the page, the concern I have is to reduce the size
what do I need to make the size of my page smaller
if any other information are needed please inform me
BR
All-Star
16806 Points
2777 Posts
Re: ASP.NET Page size
Nov 30, 2014 09:37 PM|Kevin Shen - MSFT|LINK
Hi SharpRan,
First, I suggest that you should disable the ViewState of your controls in your gridview .It would be better to reduce the page size if you can disable the gridview ViewState without impacting on your programme.
Second, I suggest that you can try to use Ajax to partical refresh your gridview so that you don't need to request a whole page from the server side.
Best Regards,
Kevin Shen.