Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How can I avoid a blank page flash during server roundtrip?

How can I avoid a blank page flash during server roundtrip?

Scheduled Pinned Locked Moved ASP.NET
questionhelpcsharpjavascript
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lmm
    wrote on last edited by
    #1

    I have a web page that is mainly generated dynamically in code-behind vb.net, and which has some server controls. The contents of the page is cached when generated, and added to placeholders during the call to Page_Load. When an event fires in a server control, and the event is handled on the server, the page in the browser flashes the blank page during the server roundtrip, so that if you are working through the page quickly, the page flashes a lot. Is there any way of telling the browser to keep the previous screen during postback and only re-display once the modified page has been generated, so that the duration of the flash is minimized? Can this be done without having to use javascript to fire off events in hidden windows, etc.? Is there some kind of setting on the page that can achieve this? What is the "correct" way of solving this problem? The basic structure of the page is as follows: '******** Private myForm as MyDataForm Sub Page_Load() 'If not postback then 'Generate contents of myForm 'Add myForm to cache 'Else 'Get myForm from cache 'Add myForm objects to placeholders 'End Sub 'Sub OnBubbleEvent 'Catch events from server controls and modify page 'End Sub '******** Thanks for any help

    G 1 Reply Last reply
    0
    • L lmm

      I have a web page that is mainly generated dynamically in code-behind vb.net, and which has some server controls. The contents of the page is cached when generated, and added to placeholders during the call to Page_Load. When an event fires in a server control, and the event is handled on the server, the page in the browser flashes the blank page during the server roundtrip, so that if you are working through the page quickly, the page flashes a lot. Is there any way of telling the browser to keep the previous screen during postback and only re-display once the modified page has been generated, so that the duration of the flash is minimized? Can this be done without having to use javascript to fire off events in hidden windows, etc.? Is there some kind of setting on the page that can achieve this? What is the "correct" way of solving this problem? The basic structure of the page is as follows: '******** Private myForm as MyDataForm Sub Page_Load() 'If not postback then 'Generate contents of myForm 'Add myForm to cache 'Else 'Get myForm from cache 'Add myForm objects to placeholders 'End Sub 'Sub OnBubbleEvent 'Catch events from server controls and modify page 'End Sub '******** Thanks for any help

      G Offline
      G Offline
      George L Jackson
      wrote on last edited by
      #2

      Use Smart Navigation.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups