c# - How do I progressively render a header before content in ASP.NET master pages? -
i have large slow asp.net site uses master pages.
i've identified user have better experience if can see header , navigation while rest of page being generated/processed/loaded database.
i've done simple tests , can response.write() followed response.flush() in page_load(), , iis use chunked encoding , send output browser while rest of page renders.
i want same thing, send master page header , navigation.
any pointers on how achieve this?
using asp.net 4 , iis 7.5
edit
if can give pointers on how change site use ajax without having change every page , link, i'd appreciate it. thanks!
i suggest use control caching. asp.net provides native caching of pages , controls. see these links know more.
asp.net caching: techniques , best practices
http://msdn.microsoft.com/en-us/library/aa478965.aspx
asp.net caching
http://msdn.microsoft.com/en-us/library/xsbfdd8c(v=vs.100).aspx
control caching
as have mentioned, appears use page-caching. try using control-caching further improve caching. use control caching, place partialcachingattribute
on control class. can use controlcachepolicy
of control set caching behavior:
control.getcachepolicy()
Comments
Post a Comment