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 …!


10 comments:

Chetan said...

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

Capitán Cavernícola said...

Maybe you forget the final /> ?

Unknown said...

Thanks Delo, you are right i have missed />

master777 said...

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

Unknown said...

Its not working in my Master page

Unknown 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.

rmouniak said...

This blog gives very important info about .Net
.Net Online Training Hyderabad

Janu said...

It has been a long time since I've read anything so informative and compelling. I'm waiting for the next article from the writer. Thank you.



Dot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery




Post a Comment