All Experts, please HELP!!

Discussion in 'ASP .Net' started by P.D., Oct 29, 2003.

  1. P.D.

    P.D. Guest

    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(Response.OutputStream,
    System.Drawing.Imaging.ImageFormat.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.
    P.D., Oct 29, 2003
    #1
    1. Advertising

  2. 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="streamimage.aspx?id=3" />

    Hope that helps.

    Regards,
    Wim Hollebrandse
    http://www.wimdows.net
    http://www.wimdows.com

    ---
    Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/
    Wim Hollebrandse, Oct 29, 2003
    #2
    1. Advertising

  3. P.D.

    P.D. Guest

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

    Cheers
    P.D.
    P.D., Oct 29, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. William Buchanan

    Data layer experts - Please Help!

    William Buchanan, Mar 10, 2006, in forum: ASP .Net
    Replies:
    10
    Views:
    647
  2. KK
    Replies:
    2
    Views:
    516
    Big Brian
    Oct 14, 2003
  3. Guest
    Replies:
    5
    Views:
    330
  4. Ben
    Replies:
    17
    Views:
    219
  5. deep
    Replies:
    1
    Views:
    112
Loading...

Share This Page