Solved

asp.net load images once page has loaded.

Posted on 2012-04-07
2
327 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 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