HighTechTalks DotNet Forums  

Blank page in a modal dialog window

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss Blank page in a modal dialog window in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Reece Williams
 
Posts: n/a

Default Blank page in a modal dialog window - 06-09-2005 , 08:31 PM






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.




Reply With Quote
  #2  
Old   
Parag
 
Posts: n/a

Default Re: Blank page in a modal dialog window - 06-21-2005 , 08:09 AM






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

Quote:
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.






Reply With Quote
  #3  
Old   
Reece Williams
 
Posts: n/a

Default Re: Blank page in a modal dialog window - 06-21-2005 , 06:09 PM



Thanks for your reply.

I did try the nocache thang (and it worked), but that obviously affected
download times - esp. over a slow link, which is only where we had the
problem.

It's probably a real kludge, but we ended up adding a simple JS function to
<body onload> to resize the width of the dialog by +1 px followed by -1 px.
The user doesn't see the size change and it's enough to get IE to repaint the
window.

This probably wouldn't work if there's no need to repaint - ie we have a
100% width box and resizing the width caused a repaint. Resizing the height
didn't work because it didn't change the layout!

Thanks,
R.


"Parag" wrote:

Quote:
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.







Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.