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.
Sandip R Patel
Please do not forget to click 'Mark as Answer' if this answer helps.
Member
1 Points
13 Posts
Browser shows just symbols with DrawRectangle
Oct 27, 2011 01:28 PM|bl4nk|LINK
Hello all,
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.
Member
120 Points
45 Posts
Re: Browser shows just symbols with DrawRectangle
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.
Please do not forget to click 'Mark as Answer' if this answer helps.