Random image

Discussion in 'ASP .Net' started by Miguel Dias Moura, Sep 22, 2004.

  1. Hello,

    In an Asp.net / VB page I created a dataset which loads links from
    images from an Access database.

    To display an image i wrote the following line:
    <img src='images/<%# dsImageBank.FieldValue("image", Container) %>' />

    This displays the last image loaded.

    I need to display the a random image of the list and not the last image
    loaded.

    How can i do that?

    Thank You,
    Miguel
     
    Miguel Dias Moura, Sep 22, 2004
    #1
    1. Advertising

  2. There is a AdRotator web control which does something very similar.

    --
    Girish Bharadwaj
    http://msmvps.com/gbvb
    "Miguel Dias Moura" <> wrote in message
    news:...
    > Hello,
    >
    > In an Asp.net / VB page I created a dataset which loads links from
    > images from an Access database.
    >
    > To display an image i wrote the following line:
    > <img src='images/<%# dsImageBank.FieldValue("image", Container) %>' />
    >
    > This displays the last image loaded.
    >
    > I need to display the a random image of the list and not the last image
    > loaded.
    >
    > How can i do that?
    >
    > Thank You,
    > Miguel
    >
     
    Girish bharadwaj, Sep 22, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Darren Clark

    Random NOt random?

    Darren Clark, Jun 24, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    492
    mikeb
    Jun 24, 2004
  2. Maziar Aflatoun

    Random not really random...

    Maziar Aflatoun, Aug 4, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    26,798
    Maziar Aflatoun
    Aug 5, 2004
  3. globalrev
    Replies:
    4
    Views:
    823
    Gabriel Genellina
    Apr 20, 2008
  4. Linda
    Replies:
    5
    Views:
    144
    Mick White
    Jan 7, 2005
  5. VK
    Replies:
    15
    Views:
    1,336
    Dr J R Stockton
    May 2, 2010
Loading...

Share This Page