Wednesday, March 24, 2010

.NET: How to prevent master page flickering



Finally I have found a simply great solution to prevent the master page flickering every time the user makes a selection off of the menu.

This does not imply preventing the master page from reloading after post back, but only stops master page flickering.

Add this magical code in between your <Head> </Head> tags of your "MasterPage.Master".
Please do not ask me how the below code works, because I am not sure either, but it works like a gem.

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



Enjoy …!


8 comments:

Chetan said...

Awesome solution. Only works on IE though. Chrome and other still flickers when using masterpages.

Delo said...

Maybe you forget the final /> ?

SRINIVAS Sreeramoju said...

Thanks Delo, you are right i have missed />

master777 said...

Hi, thanks for the post but it doesn't work!

Shrinivas Adgale said...

Its not working in my Master page

Sindhuja Selvam said...

Thank you so much sir...... that is perfectly working in my masterpage...

Michael said...

Not working for me in Chrome either. Works fine in Firefox and IE. Still flashing on postback in Chrome.

Michael said...

Not working for me in Chrome either. Works fine in Firefox and IE. Still flashing on postback in Chrome.

Post a Comment