Advice on design approach (please!)

Discussion in 'ASP .Net Web Controls' started by Erik J Sawyer, Sep 6, 2003.

  1. I want to build a control/component that will display
    graphics within an ASP.Net page. I want the output to be
    very cross-browser compatible.

    My first thought was to use a custom server-side web
    control (possibly inherited from the Image control), but
    it appears that the rendering of ASP.Net server controls
    is limited to inserting text into the HTML stream. I
    assume that inserting a graphical MIME stream into this
    wouldn't produce the desired result.

    I have found a (very) few samples on the web that
    generate graphics, but most of them sit behind an <img>
    link, essentially using ASP.Net as if it was CGI. Is
    this the best approach?

    Help!
    Erik J Sawyer, Webmaster
    Kingsport City Schools
    www.k12k.com
    Erik J Sawyer, Sep 6, 2003
    #1
    1. Advertising

  2. Yes I have had this problem myself. You need to use an
    <img=url> in html as you stated: we are still bound by
    the rules of html... however, you can point the URL for
    the image at another aspx page, generate the image in
    that page and then stream it into the orignal page. This
    removes the need for you to store the the image on HD and
    allows you to write a general purpose image
    generator/loader.

    regards,
    Allan Doensen
    www.allandoensen.com
    >-----Original Message-----
    >I want to build a control/component that will display
    >graphics within an ASP.Net page. I want the output to

    be
    >very cross-browser compatible.
    >
    >My first thought was to use a custom server-side web
    >control (possibly inherited from the Image control), but
    >it appears that the rendering of ASP.Net server controls
    >is limited to inserting text into the HTML stream. I
    >assume that inserting a graphical MIME stream into this
    >wouldn't produce the desired result.
    >
    >I have found a (very) few samples on the web that
    >generate graphics, but most of them sit behind an <img>
    >link, essentially using ASP.Net as if it was CGI. Is
    >this the best approach?
    >
    >Help!
    >Erik J Sawyer, Webmaster
    >Kingsport City Schools
    >www.k12k.com
    >.
    >
    Allan Doensen, Sep 8, 2003
    #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. KavvY
    Replies:
    1
    Views:
    393
  2. Mr Gordonz

    Advice on design approach and principles

    Mr Gordonz, Aug 4, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    362
    Steve C. Orr, MCSD
    Aug 4, 2003
  3. Mudcat
    Replies:
    9
    Views:
    424
    Dennis Lee Bieber
    Mar 21, 2006
  4. Erik J Sawyer

    Advice on design approach (please!)

    Erik J Sawyer, Sep 6, 2003, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    121
    Shawn B.
    Sep 7, 2003
  5. Ken Fine
    Replies:
    2
    Views:
    119
    Ken Fine
    Aug 4, 2004
Loading...

Share This Page