dimanche 16 août 2020

Asp net MVC web app - button click to show random picture in view

I am new to programming in general but i am trying to make a web app with Asp.Net MVC and I am sure it might be an easy solution, what I have tried are different random number generator based ideas but I am out of time and energy.

The idea is this:

  • There is a folder in my project with 5 pictures (1.jpg, 2.jpg...etc)
  • When I navigate to Random page, there is a button. When i click the button a random image appears, maybe even in a modal type view.

I was thinking it might work using the Lightbox idea to zoom the picture, when you press a small picture, one random picture from those 5 zoom out. I have no idea if i made myself clear.

Thanks for your ideas and help!




Aucun commentaire:

Enregistrer un commentaire