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

Problem

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
Comment:
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
Comment:
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
Comment:
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
Comment:
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
Comment:
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
Comment:
thank you very much
Title: Thank you   
Name: Byteknight
Date: 2007-10-05 8:17:25 AM
Comment:
Thanks a lot. It really works . Very helpful!

Product Spotlight
Product Spotlight 





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


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-26 11:10:56 PM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search