image url question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?cm9kY2hhcg==?=

    #1

    image url question

    hey all,
    i'm doing the "use an aspx page for ImageUrl" trick and ran into wall. i
    need to take an existing image that resides in the application root in a
    folder called, none other than, images and make that show up.

    Could someone please help me with the syntax? Also, if i could be doing this
    an easier way please let me know.

    thanks,
    rodchar
  • =?UTF-8?B?R8O2cmFuIEFuZGVyc3Nvbg==?=

    #2
    Re: image url question

    rodchar wrote:
    hey all,
    i'm doing the "use an aspx page for ImageUrl" trick and ran into wall. i
    need to take an existing image that resides in the application root in a
    folder called, none other than, images and make that show up.
    >
    Could someone please help me with the syntax? Also, if i could be doing this
    an easier way please let me know.
    >
    thanks,
    rodchar
    For a PNG image:

    Response.Conten tType = "image/png";
    Response.WriteF ile(Server.MapP ath("images/SomeImage.png") );

    For other image formats, use a different content type.

    --
    Göran Andersson
    _____
    Göran Anderssons privata hemsida.

    Comment

    • =?Utf-8?B?cm9kY2hhcg==?=

      #3
      Re: image url question

      thank you so much, i didn't even know there was that method in the Response
      object.

      "Göran Andersson" wrote:
      rodchar wrote:
      hey all,
      i'm doing the "use an aspx page for ImageUrl" trick and ran into wall. i
      need to take an existing image that resides in the application root in a
      folder called, none other than, images and make that show up.

      Could someone please help me with the syntax? Also, if i could be doing this
      an easier way please let me know.

      thanks,
      rodchar
      >
      For a PNG image:
      >
      Response.Conten tType = "image/png";
      Response.WriteF ile(Server.MapP ath("images/SomeImage.png") );
      >
      For other image formats, use a different content type.
      >
      --
      Göran Andersson
      _____
      Göran Anderssons privata hemsida.

      >

      Comment

      Working...