Master page header, flicker free, no reload?

Topics: ASP.NET 2.0
Aug 26, 2008 at 7:15 PM

Excuse me if this question seems a little unimportant but I am very curious about how the master page header can be flicker free? I'm talking about the standard theme here, when navigating between pages by clicking the links in the header, the content is loaded smoothly below. But in every discussion I have read about this on the internet, the conclusion is that is it not possible with master and content pages and that an iframe should be used. This because the master page is derived from a usercontrol and just a part of each separate page. But you seem to have done a great job on that, congrats, it works just like anybody would want, can someone tell me the secret? :)

Of course I have downloaded the source code but to be honest, I could not really find out why it worked like this so I thought I'd see if anyone here could help me...

Aug 26, 2008 at 10:29 PM
I'm guessing you're refering to the fading effect when you click on a link, any link as a matter of fact. It is simply a visual illusion created by this:

<meta http-equiv="Page-Enter" content="blendTrans(Duration=0.2)" />
<meta http-equiv="Page-Exit" content="blendTrans(Duration=0.2)" />

in the html header. So the page is actually doing a total reload and the header is also refreshed, it just doesn't look like it is.

Best regards
Rickard Nilsson

Ps. as you can see if you visit my blog, it works just as good with my custom theme.
Aug 27, 2008 at 7:10 AM
Many thanks for your answer, in my opinion, this little visual illusion both solves the problem with flickering refresh in a master page header and gives a smooth transition between pages. I will certainly use it myself. Thnks...

Tusen tack!