Last post Nov 16, 2011 07:52 AM by sandiprp
Oct 27, 2011 01:28 PM|bl4nk|LINK
I'm trying to draw a simple rectangle in a web form and when I run it the browser shows only symbols like these:
I'm guessing its a windows thing. I've tried several browsers, all with the same results. I'm running w7 ultimate.
I have no idea how to fix this, don't even know what to search for as a possible solution, so here I am.
Nov 16, 2011 07:52 AM|sandiprp|LINK
You sending image back to response? If so you need to set ContentType to "image/jpg" or "image/png". If you do not set it. Browser will try to render as a "text/html" which is the default ContentTpe of aspx page.
Hope it will help you.