<scr> tag and image files embedded in resource files? (how)?

Discussion in 'ASP .Net Web Controls' started by Ole Hanson, Jan 10, 2005.

  1. Ole Hanson

    Ole Hanson Guest

    Building a webserver controls, I want to compile my images into a resource
    file and then use this for my
    <img> tags in my table
    (<table><tr><img scr=(my resourcefile)</tr></table>);
    instead of having a list of images on my server...

    How can this be accomplished??

    Thanks you!

    /Ole
     
    Ole Hanson, Jan 10, 2005
    #1
    1. Advertising

  2. You'll need a special page to output these images.
    Every <img> tag will need to point to this page.
    You page will read the image from the resource file and use
    Response.OutputStream.Write method.

    This example demonstrates how to do it, except it read from a database
    instead of a resource file so it gets you at least half way there.
    http://steve.orr.net/content/asp200307so_f.asp

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://Steve.Orr.net


    "Ole Hanson" <> wrote in message
    news:...
    > Building a webserver controls, I want to compile my images into a resource
    > file and then use this for my
    > <img> tags in my table
    > (<table><tr><img scr=(my resourcefile)</tr></table>);
    > instead of having a list of images on my server...
    >
    > How can this be accomplished??
    >
    > Thanks you!
    >
    > /Ole
    >
    >
     
    Steve C. Orr [MVP, MCSD], Jan 10, 2005
    #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. Dirc Khan-Evans
    Replies:
    1
    Views:
    905
    Karl Seguin
    Oct 17, 2005
  2. shruds
    Replies:
    1
    Views:
    856
    John C. Bollinger
    Jan 27, 2006
  3. Michael Westphal
    Replies:
    10
    Views:
    163,833
  4. news.verizon.net
    Replies:
    3
    Views:
    570
    Whitecrest
    Jun 21, 2004
  5. Ole Hanson

    <img> tag and resource files for scr-source?

    Ole Hanson, Jan 10, 2005, in forum: ASP .Net Building Controls
    Replies:
    3
    Views:
    279
    Ole Hanson
    Jan 12, 2005
Loading...

Share This Page