Dynamically load a list view with images - is it stored in session ?

0
0

I need to load some kind of list like the List view to allow the user to select from a set of small PNG files (1 to 2K each), but there are like 150 of them.

If I dynamically load them into a listview – are they stored in the session for each user of the application ?

If they are – whats a better way to do it to avoid this being in the server’s memory ?

  • You must to post comments
0
0

If you use the name of the image file (or an image in a theme) it’s only stored and cached on the browser.  The only way to load it in memory is to load the image in an System.Drawing.Image object.

  • edmond girardi
    not following, I have the images as .PNG files just in an images folder in the root of the project. Are you saying if I dynamically assign the image to the ListView using the full path to the file on the drive it will only send it to the browser ? (which is what I want)
  • Luca (ITG)
    Yes, use the relative path. Assign it to ImageSource.
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.