CodeSnip: Taming the Page Flash Beast in ASP.NET 2.0
page 2 of 4
by Shaun Eutsey
Average Rating: 
Views (Total / Last 10 Days): 22068/ 28


To me, one of the features that I miss the most about ASP.NET 1.1 is the SmartNavigation.  Yes, it had some bugs, but the idea behind it was brilliant.  With one simple setting you could maintain the pages postback position and virtually eliminate the page flash. 

While there is a very real and valid alternative in .NET 2.0 for handling postback position, MaintainScrollPositionOnPostback, there is still the issue with page flashes.  I find pages flashing annoying and I have recently been on a quest to defeat this enemy. 

While searching high and low for a good, solid, solution to my dilemma, I remembered a meta-tag that I have not used in many years.  A meta-tag that would take care of all page flash problems, while letting MaintainScrollPositionOnPostback handle the scroll position.

View Entire Article

User Comments

Title: Still works!   
Name: Chuck
Date: 2010-10-11 10:33:55 AM
I've been having headaches from a custom control that, even when in an update panel, caused the page to flash.

This solution seems to be working so far... Thanks a lot!
Title: Eliminate page flash   
Name: PeterM
Date: 2008-11-28 2:30:11 PM
I can't tell you how many hours I've put in and different techniques I've tried to overcome this problem, and you've solved it in 10 seconds! Thanks very much!
Title: Works in ASP.Net 1.0!   
Name: MikeG3
Date: 2008-05-27 4:40:54 PM
We're still on 1.0, but this trick works great! Thanks!
Title: Amazing use of Meta Tag   
Name: Mark
Date: 2008-05-03 12:52:03 PM
This trick is Excellent! I wouldn't have thought of it in a million years. Very creative use of meta tags. The old meets the new!
Title: FLash And XML   
Name: Flash
Date: 2008-04-18 5:08:17 AM
i want these, how to pass a xml textbox value to flash using actionscript.
Title: excellent trick   
Name: tana
Date: 2007-10-24 9:40:51 AM
thank you very much
Title: Thank you   
Name: Byteknight
Date: 2007-10-05 8:17:25 AM
Thanks a lot. It really works . Very helpful!

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024  |  Page Processed at 2024-04-15 5:31:54 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search