Home
> Uncategorized > Help!. Can’t reopen a page whilst another is loading…
Help!. Can’t reopen a page whilst another is loading…
If a page takes a long time to load, but has already flushed out content containing a hyperlink, that
hyperlink will not work until the page is fully loaded.
To demonstrate:
<a href="tempTest.aspx" target="_blank">Click to reopen this page</a><br>
<%
for (int i=0;i<1000;i++)
{
System.Threading.Thread.Sleep(100);
Response.Write(i + "…");
Response.Flush();
}
%>
<%
for (int i=0;i<1000;i++)
{
System.Threading.Thread.Sleep(100);
Response.Write(i + "…");
Response.Flush();
}
%>
If you save this as tempTest.aspx, then load it in your web browser, and click on the link before
it has counted to 1000, you will see that the popup window hangs until the first page is complete.
Free pint of beer to whoever solves this one!
Categories: Uncategorized
Comments (0)
Trackbacks (0)
Leave a comment
Trackback