Browser shows just symbols with DrawRectangle RRS feed

  • Question

  • User-476240304 posted

    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.

    Thursday, October 27, 2011 1:28 PM

All replies

  • User88100680 posted

    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.

    Wednesday, November 16, 2011 7:52 AM