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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -