Best method for displaying a image based on a variable

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • esparkman

    #1

    Best method for displaying a image based on a variable

    Hey guys,

    Kinda stuck in a rut on this one. I'm designing a online stats tracking
    web app for the game battlefield 2. I want to display the players rank
    represented by an image. That is in turn based on a variable int
    number. I have this work in a win32 application. Just can't semm to
    convert what i have done to be compatible for a web app. Any help and
    insight is very much appreciated.

  • Nicholas Paldino [.NET/C# MVP]

    #2
    Re: Best method for displaying a image based on a variable

    Well, are you generating this image on the fly? What you might want to
    do is have your ASP.NET page generate the images based on the number, and
    store them in a public space. Then, you just write the link to the
    appropriate image.

    You might also want to cache the images as well, so that you don't have
    to generate them over and over again.

    Hope this helps.


    --
    - Nicholas Paldino [.NET/C# MVP]
    - mvp@spam.guard. caspershouse.co m

    "esparkman" <evan.sparkman@ gmail.com> wrote in message
    news:1141744587 .653395.177430@ i39g2000cwa.goo glegroups.com.. .[color=blue]
    > Hey guys,
    >
    > Kinda stuck in a rut on this one. I'm designing a online stats tracking
    > web app for the game battlefield 2. I want to display the players rank
    > represented by an image. That is in turn based on a variable int
    > number. I have this work in a win32 application. Just can't semm to
    > convert what i have done to be compatible for a web app. Any help and
    > insight is very much appreciated.
    >[/color]


    Comment

    Working...