All Experts, please HELP!!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • P.D.

    #1

    All Experts, please HELP!!

    How's it?

    I have a web form with a meta tag to make it refresh
    every four seconds:

    <meta http-equiv="Refresh" content="4">

    This works ok on its own, but if I put in the following
    line in the code behind file (Page_Load() method), the
    page won't refresh itself:

    bmp.Save(Respon se.OutputStream ,
    System.Drawing. Imaging.ImageFo rmat.Jpeg);

    (bmp is a Bitmap instance).

    It looks like if you write to the Response output stream,
    it screws some (or all) of your meta tags!!

    Can anyone shed some light??

    Thanks
    P.D.
  • Wim Hollebrandse

    #2
    Re: All Experts, please HELP!!

    You are mixing ContentTypes here. You are streaming the image to the response, and also expect to see HTML.

    What you need to do is stream the image from a different ASPX page, and link to that ASPX as if it were a physical image file so you can use the <img> tag.

    I.e.:

    <img src="streamimag e.aspx?id=3" />

    Hope that helps.

    Regards,
    Wim Hollebrandse

    Zealand IT Ltd is a UK based IT consultancy and software development company that specialises in bespoke Microsoft .NET solutions including ASP.NET web applications and advanced SOA architectures for public and private sector clients. Please contact us for a free quote.


    ---
    Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/

    Comment

    • P.D.

      #3
      Re: All Experts, please HELP!!

      Thankyou for your help, I'll give it a try.

      Cheers
      P.D.

      Comment

      Working...