Advice on design approach (please!)

E

Erik J Sawyer

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
 
A

Allan Doensen

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top