Solved

asp.net load images once page has loaded.

Posted on 2012-04-07
2
326 Views
Last Modified: 2012-08-13
Hi all, how do you load images in the background once a page has loaded. I have a page where you can click to see larger images. I would like it that when the page loads it then looks at what the users might click on next and load them in the background.

It would just seed things up when they try to click on the image thumnails.
0
Comment
Question by:taz8020
2 Comments
 
LVL 17

Assisted Solution

by:Anuroopsundd
Anuroopsundd earned 100 total points
ID: 37819175
If you mean after page is loaded on the client, then you can use this ASP.NET Ajax code: (It requires that you have a <asp:ScriptManager> on the page to enable AJAX)

<script type="text/javascript">  var prm = Sys.WebForms.PageRequestManager.getInstance(); if(prm) prm.add_pageLoaded( PageLoadedEventHandler );  function PageLoadedEventHandler() {   // Do your stuff } </script>

http://stackoverflow.com/questions/1426491/how-to-load-images-after-page-load-completed-in-asp-net
0
 
LVL 20

Accepted Solution

by:
BuggyCoder earned 400 total points
ID: 37820088
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now