Creating a simple graphic on the fly

  • Thread starter Thread starter JJ
  • Start date Start date
J

JJ

I want to create a very simple square shape with a color (defined in hex) to
display on my web page.

The page will reside on an ISP's server so I don't want to have to have to
ask them to change IIS settings for any file types etc. (I;m not sure if you
even need to do this);

What's the easiest way for me to do this with no forseen issues with the
host?

Thanks in advance,

JJ
 
Hi,

custom ashx http handler which generates the square shape with GDI+. It
doesn't need any custom mappings in IIS since ashx should be already
approved / mapped extension by default.

You display the square on page like you'd display image with IMG tag or
<asp:Image> control. URL just points to the ashx handler.
 
I see.

Actually I think I can just get away with coloring a square panel background
on this occassion, but now I know how to approach this.

Many thanks,

JJ
 
Back
Top