[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • Last Modified:

asp.net load images once page has loaded.

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
taz8020
Asked:
taz8020
2 Solutions
 
AnuroopsunddCommented:
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

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now