![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
We have a strange problem with blank pages appearing...sometimes. If we have cacheing enabled on the client and the client's connection is slow, when we open an ASP.Net page in a modal dialog, the page sometimes appears blank. If the dialog is resized, the page is displayed, so the page *has* actually loaded, but has not painted. If we disable client cacheing, it displays every time, but at an obvious performance hit. If it's a faster network and client cacheing is enabled, it displays every time. I've tried to resize the window onload with some JS to force a repaint, but since the page is coming from the cache, the page_load event is not triggered and the function doesn't get connected to the event. Is there: a) any event to trap when the page has come from the cache so I can programatically resize/repaint the window? b) any setting other than nocache that will force the page to paint? Thanks, R. |
#3
| |||
| |||
|
|
Hi , I am not expert at caching ... but I know a solution which will force the page to repainted on the client side. This may solve the problem. Try using the following tag in ur aspx page. %@ OutputCache Location="None"% This will disable to client side caching and force the page to be reloaded.This has solved my similar problem. You can try with the several other alternatives available with the @OutputCache directive as it also allows you to cache some specific part of the page. Regards Parag Kulkarni MTS, Persistent Systems Private Limited "Reece Williams" <Reece Williams (AT) discussions (DOT) microsoft.com> wrote in message news:5C07216B-9805-45CC-97E7-A4BAB09C848B (AT) microsoft (DOT) com... We have a strange problem with blank pages appearing...sometimes. If we have cacheing enabled on the client and the client's connection is slow, when we open an ASP.Net page in a modal dialog, the page sometimes appears blank. If the dialog is resized, the page is displayed, so the page *has* actually loaded, but has not painted. If we disable client cacheing, it displays every time, but at an obvious performance hit. If it's a faster network and client cacheing is enabled, it displays every time. I've tried to resize the window onload with some JS to force a repaint, but since the page is coming from the cache, the page_load event is not triggered and the function doesn't get connected to the event. Is there: a) any event to trap when the page has come from the cache so I can programatically resize/repaint the window? b) any setting other than nocache that will force the page to paint? Thanks, R. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |