Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 284669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:28:41+00:00 2026-05-12T05:28:41+00:00

What I am talking about is like this website : http://www.ernesthemingwaycollection.com It has a

  • 0

What I am talking about is like this website :
http://www.ernesthemingwaycollection.com

It has a static wallpaper and a set of images that change from page to page, I want to implement a similar way of displaying random images from a set of images using ASP.NET.

EDIT : I want the image to stay the same in a session, and change from a session to another.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:28:41+00:00Added an answer on May 12, 2026 at 5:28 am

    The site you mentioned is not using a random set of images. They are coded into the html side of the aspx page.

    You could place an asp Image control on your page. Then on the page’s Page_Load function set the image to a random picture of your set.

    protected void Page_Load(object sender, EventArgs e)
            {
    
                this.Image1.ImageUrl = "~/images/random3.jpg";
            }
    

    You have different options on where to store the image set data. You could use a database and store the urls in a table. This would allow to use the built-in Random function found in SQL. Or you can save a XML file to the server, load that then use the Random .Net class to pick one of your xml nodes.

    Personally i would recommend the Database solution.

    EDIT: Because the server session is destroyed after 20mins you may want to look at using cookies so you can see the last random image they saw.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am talking about doing something like this: LOCK TABLE page WRITE; SELECT *
I need to recreate an effect that mint.com has on another website. When you
http://www.trafficestimate.com/,http://getclicky.com/,http://technotarget.com/find-out-who-is-visiting-your-site-website-traffic-tools/,http://pmetrics.performancing.com/ The above are sample websites for trimming. I want to extract only the
I'm talking about methods like -removeAllObjects, -removeLastObject, etc for NSMutableArray. The documentation only says
Im talking about performing a deep recursion for around 5+ mins, something that you
I'd like to start using asynchronous processing in IIS. Edit: I'm talking about using
I noticed that when using the hide() function in JQuery, like this: $(myDiv).hide(slow); It
Talking about javax.crypto.Cipher I was trying to encrypt data using Cipher.getInstance(RSA/None/NoPadding, BC) but I
Talking about SimpleModal the jQuery plugin. Most of the time I think it is
Talking about System.Collections.Generic.List<T> here. With example below can Method1 and Method2 execute and the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.