Creating a simple graphic on the fly

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
 
T

Teemu Keiski

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.
 
J

JJ

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
 

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

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top