Keep current page displayed untill new page is loaded

I just want to keep current page displayed untill new page is loaded in asp.net 2.0.
I don't want to see a blank page.

Ajax is not the solution for my problem.

Thanks a lot !
ICOTechAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

prairiedogCommented:
Is it because the second page takes a long time to load?
0
ChetOS82Commented:
We are not sure what your issue is... Are you clicking a link to another page, and you don't want the current one to go away first?
0
ICOTechAuthor Commented:
Yes ChetOs82 is rigth I don't want to go away first and the second page is a page of my web application.

Do you have a solution ?

Sorry for my english I speak habitualy french.
0
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

ChetOS82Commented:
What you want is not possible.  When you click a link, the page is unloaded from memory.  The new page is then requested, processed, downloaded, and rendered.  Since they are two distinct events, you cannot keep on page up while the next one works.

There are ways of tackling this problem, but they depend on why the second page takes so long to load.

If it is doing some sort of processing, you could put up an intermediate page (which says something like "Searching..." or "Processing...").  If the page is just huge (several megs), then there isn't much you can do (other than make it smaller).  If it is loading a bunch of graphics, you could pre-cache the graphics in the first page.
0
ICOTechAuthor Commented:
Ok and how I can pre-cache the graphic ?
0
ChetOS82Commented:
Most people use Javascript:

<script type="text/script">
function preCache() {
image1 = new Image();
image1.src = "image1.gif";

image2 = new Image();
image2.src = "image2.gif";
}
</script>
<body onload="preCache();">
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ICOTechAuthor Commented:
Somebody have another solution ? The last one not give a great result.
0
prairiedogCommented:
>>>Somebody have another solution ? The last one not give a great result.
I might have one if you answer my question.
0
ICOTechAuthor Commented:
Yes prairiedog, the second page takes 4 to 6 seconds to load.
0
prairiedogCommented:
OK.
As ChetOS82 mentioned before, it is not possible to keep the first page displayed while the request has been redirected to the second page. I believe what you need is to give user some feedback before the second page is fully loaded, instead of just a black page. If we can put something like a popup saying "The page is loading, please wait...", and the popup will disappear once the second is loaded. Is this option acceptable?
0
ICOTechAuthor Commented:
Is not acceptable for my client.
I just want to keep current page displayed untill new page is loaded or else load template master of the second page immediatly and the content after but I don't want to use ajax. I need postback to conserv my hystoric.

P.S : Sorry for my english I speak habitualy french
0
prairiedogCommented:
I didn't say AJAX in my previous post, did I? With pure JavaScript, we still can do what I mentioned in my previous post, but if it is not acceptable, then I am sorry you are pretty much in the dead end.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.