How can I avoid a blank page flash during server roundtrip?
-
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
-
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
Use Smart Navigation.