Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Advice on design approach (please!)

Reply
Thread Tools

Advice on design approach (please!)

 
 
Erik J Sawyer
Guest
Posts: n/a
 
      09-06-2003
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
 
Reply With Quote
 
 
 
 
Allan Doensen
Guest
Posts: n/a
 
      09-08-2003
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
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need design advice. What's my best approach for storing this data? Mudcat Python 9 03-21-2006 06:26 AM
Function or approach to test if XML is well-formed? Design advice? Ken Fine ASP General 2 08-04-2004 09:54 PM
advice needed - what approach for sql access KavvY ASP .Net 1 07-17-2004 08:17 AM
Advice on design approach (please!) Erik J Sawyer ASP .Net Building Controls 2 09-07-2003 05:01 AM
Advice on design approach and principles Mr Gordonz ASP .Net 1 08-04-2003 10:08 PM



Advertisments