Meta Refresh results in blank page

Discussion in 'ASP General' started by Craig, Aug 1, 2006.

  1. Craig

    Craig Guest

    Hi
    I am trying to debug a problem with some ASP pages when accessed via IIS on
    Windows 2003 Server SP1.

    In summary, the pages are structured as follows:

    Root page
    Page loaded via IMG SRC

    Root Page extract >>>
    <tr>
    <td id="cell" class="sectionhdct" height="350" width="500">
    <img id="myPic"src="../document.ASP?ConnectionString="...">
    </td>
    </tr>

    Document.asp generates this (sanitised version) >>>
    <META HTTP-EQUIV="REFRESH" CONTENT="0;URL=Z:\...\myphoto.jpg">

    The resulting page is blank.
    If I use the img src URL in IE alone, it also results in a blank page.

    The mapped drive Z: is available on the IIS server and the file/path is
    correct.

    However, if I save the above <META ... statement in an HTM file and open it
    in IE the image is displayed correctly.

    Any suggestions?

    This used to work in older versions of IIS and older OS versions.

    If you need any further information,please ask.

    Please note I am not an ASP developer or IIS administrator.


    --
    Regards,
    Craig
     
    Craig, Aug 1, 2006
    #1
    1. Advertising

  2. Craig

    Evertjan. Guest

    =?Utf-8?B?Q3JhaWc=?= wrote on 01 aug 2006 in
    microsoft.public.inetserver.asp.general:

    > Root Page extract >>>
    > <tr>
    > <td id="cell" class="sectionhdct" height="350" width="500">
    > <img id="myPic"src="../document.ASP?ConnectionString="...">
    > </td>
    > </tr>
    >
    > Document.asp generates this (sanitised version) >>>
    > <META HTTP-EQUIV="REFRESH" CONTENT="0;URL=Z:\...\myphoto.jpg">
    >


    Try:

    document.asp:
    <% ' vbs
    gotourl = "Z:\...\myphoto.jpg" ' or your code result
    response.redirect gotourl
    %>


    test.html:
    <img id="myPic"src="localhost://document.asp">

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
     
    Evertjan., Aug 1, 2006
    #2
    1. Advertising

  3. Craig

    Craig Guest

    Hi Evertjan
    Thanks for the reply. I get 'Cannot find server or DNS error' using the
    suggested changes.

    --
    Regards,
    Craig


    "Evertjan." wrote:

    > =?Utf-8?B?Q3JhaWc=?= wrote on 01 aug 2006 in
    > microsoft.public.inetserver.asp.general:
    >
    > > Root Page extract >>>
    > > <tr>
    > > <td id="cell" class="sectionhdct" height="350" width="500">
    > > <img id="myPic"src="../document.ASP?ConnectionString="...">
    > > </td>
    > > </tr>
    > >
    > > Document.asp generates this (sanitised version) >>>
    > > <META HTTP-EQUIV="REFRESH" CONTENT="0;URL=Z:\...\myphoto.jpg">
    > >

    >
    > Try:
    >
    > document.asp:
    > <% ' vbs
    > gotourl = "Z:\...\myphoto.jpg" ' or your code result
    > response.redirect gotourl
    > %>
    >
    >
    > test.html:
    > <img id="myPic"src="localhost://document.asp">
    >
    > --
    > Evertjan.
    > The Netherlands.
    > (Please change the x'es to dots in my emailaddress)
    >
     
    Craig, Aug 1, 2006
    #3
  4. Craig

    Evertjan. Guest

    =?Utf-8?B?Q3JhaWc=?= wrote on 01 aug 2006 in
    microsoft.public.inetserver.asp.general:

    > "Evertjan." wrote:
    >
    >> =?Utf-8?B?Q3JhaWc=?= wrote on 01 aug 2006 in
    >> microsoft.public.inetserver.asp.general:
    >>
    >> > Root Page extract >>>
    >> > <tr>
    >> > <td id="cell" class="sectionhdct" height="350" width="500">
    >> > <img id="myPic"src="../document.ASP?ConnectionString="...">
    >> > </td>
    >> > </tr>
    >> >
    >> > Document.asp generates this (sanitised version) >>>
    >> > <META HTTP-EQUIV="REFRESH" CONTENT="0;URL=Z:\...\myphoto.jpg">
    >> >

    >>
    >> Try:
    >>
    >> document.asp:
    >> <% ' vbs
    >> gotourl = "Z:\...\myphoto.jpg" ' or your code result
    >> response.redirect gotourl
    >> %>


    [please do not toppost on usenet]

    > Hi Evertjan
    > Thanks for the reply. I get 'Cannot find server or DNS error' using the
    > suggested changes.


    That was my purpose, there is something wrong with your IIS settings,
    [unless you are trying to open the *asp file directly with your brouwser
    and not via localhost.]

    Probably Z: is not accessable under that user.
    However that is not an asp subject.
    Beter ask in an IIS NG.


    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
     
    Evertjan., Aug 1, 2006
    #4
  5. Craig

    Craig Guest

    Hi
    I've retested this with some cut down ASP pages on my local IIS web server.
    The anonymous account is a local administrator.
    The folders are structured as follows

    arm
    .... images

    The arm folder now contains both of the cut down asp pages Document.asp and
    Sample.asp.

    The Document.ASP page contains the following line
    Response.Write "<META HTTP-EQUIV=" & CHR(34) & "Refresh" & CHR(34) & "
    CONTENT=" & CHR(34) & "0; URL=" & "./images/asbestos.jpg" & CHR(34) & ">"

    When browsed to directly, the image is displayed.

    Sample.Asp refers to the Document.asp page in the IMG URL i.e.
    <tr>
    <td id="cell" class="sectionhdct" height="350" width="500">
    <%response.write "<img id=" & chr(34) & "myPic" & chr(34) & " src=" &
    chr(34) & "documentTest.ASP" & chr(34) & ">" %>
    </td>
    </tr>

    The image is not displayed in the table cell.

    Any other suggestions?
    --
    Regards,
    Craig


    "Evertjan." wrote:

    > =?Utf-8?B?Q3JhaWc=?= wrote on 01 aug 2006 in
    > microsoft.public.inetserver.asp.general:
    >
    > > "Evertjan." wrote:
    > >
    > >> =?Utf-8?B?Q3JhaWc=?= wrote on 01 aug 2006 in
    > >> microsoft.public.inetserver.asp.general:
    > >>
    > >> > Root Page extract >>>
    > >> > <tr>
    > >> > <td id="cell" class="sectionhdct" height="350" width="500">
    > >> > <img id="myPic"src="../document.ASP?ConnectionString="...">
    > >> > </td>
    > >> > </tr>
    > >> >
    > >> > Document.asp generates this (sanitised version) >>>
    > >> > <META HTTP-EQUIV="REFRESH" CONTENT="0;URL=Z:\...\myphoto.jpg">
    > >> >
    > >>
    > >> Try:
    > >>
    > >> document.asp:
    > >> <% ' vbs
    > >> gotourl = "Z:\...\myphoto.jpg" ' or your code result
    > >> response.redirect gotourl
    > >> %>

    >
    > [please do not toppost on usenet]
    >
    > > Hi Evertjan
    > > Thanks for the reply. I get 'Cannot find server or DNS error' using the
    > > suggested changes.

    >
    > That was my purpose, there is something wrong with your IIS settings,
    > [unless you are trying to open the *asp file directly with your brouwser
    > and not via localhost.]
    >
    > Probably Z: is not accessable under that user.
    > However that is not an asp subject.
    > Beter ask in an IIS NG.
    >
    >
    > --
    > Evertjan.
    > The Netherlands.
    > (Please change the x'es to dots in my emailaddress)
    >
     
    Craig, Aug 1, 2006
    #5
  6. Craig

    Evertjan. Guest

    =?Utf-8?B?Q3JhaWc=?= wrote on 01 aug 2006 in
    microsoft.public.inetserver.asp.general:

    > Hi
    > I've retested this with some cut down ASP pages on my local IIS web
    > server. The anonymous account is a local administrator.
    > The folders are structured as follows


    Again: [please do not toppost on usenet]


    > arm
    > ... images
    >
    > The arm folder now contains both of the cut down asp pages
    > Document.asp and Sample.asp.
    >
    > The Document.ASP page contains the following line
    > Response.Write "<META HTTP-EQUIV=" & CHR(34) & "Refresh" &
    > CHR(34) & "
    > CONTENT=" & CHR(34) & "0; URL=" & "./images/asbestos.jpg" & CHR(34) &
    > ">"



    Why not just use html in your asp page, using response.write does not add
    a thing!

    <META HTTP-EQUIV="Refresh" CONTENT="0; URL=./images/asbestos.jpg">


    > When browsed to directly, the image is displayed.
    >
    > Sample.Asp refers to the Document.asp page in the IMG URL i.e.
    > <tr>
    > <td id="cell" class="sectionhdct" height="350" width="500">
    > <%response.write "<img id=" & chr(34) & "myPic" & chr(34) & "
    > src=" &
    > chr(34) & "documentTest.ASP" & chr(34) & ">" %>
    > </td>
    > </tr>


    same objection.

    Could you show us the rendered HTML from the browser's view-source?


    > The image is not displayed in the table cell.
    >
    > Any other suggestions?


    Yes, simplyfy your tedst code, do not use a table that has nothing to do
    with your problem, do not use asp-code to render fixed html code.

    ..... and show the view souces of your pages.

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
     
    Evertjan., Aug 1, 2006
    #6
  7. Craig

    Bob Lehmann Guest

    >> The anonymous account is a local administrator.
    Oh, that's nice. Nothing like opening up your server to the world.

    Bob Lehmann

    "Craig" <> wrote in message
    news:...
    > Hi
    > I've retested this with some cut down ASP pages on my local IIS web

    server.
    > The anonymous account is a local administrator.
    > The folders are structured as follows
    >
    > arm
    > ... images
    >
    > The arm folder now contains both of the cut down asp pages Document.asp

    and
    > Sample.asp.
    >
    > The Document.ASP page contains the following line
    > Response.Write "<META HTTP-EQUIV=" & CHR(34) & "Refresh" & CHR(34) & "
    > CONTENT=" & CHR(34) & "0; URL=" & "./images/asbestos.jpg" & CHR(34) & ">"
    >
    > When browsed to directly, the image is displayed.
    >
    > Sample.Asp refers to the Document.asp page in the IMG URL i.e.
    > <tr>
    > <td id="cell" class="sectionhdct" height="350" width="500">
    > <%response.write "<img id=" & chr(34) & "myPic" & chr(34) & " src="

    &
    > chr(34) & "documentTest.ASP" & chr(34) & ">" %>
    > </td>
    > </tr>
    >
    > The image is not displayed in the table cell.
    >
    > Any other suggestions?
    > --
    > Regards,
    > Craig
    >
    >
    > "Evertjan." wrote:
    >
    > > =?Utf-8?B?Q3JhaWc=?= wrote on 01 aug 2006 in
    > > microsoft.public.inetserver.asp.general:
    > >
    > > > "Evertjan." wrote:
    > > >
    > > >> =?Utf-8?B?Q3JhaWc=?= wrote on 01 aug 2006 in
    > > >> microsoft.public.inetserver.asp.general:
    > > >>
    > > >> > Root Page extract >>>
    > > >> > <tr>
    > > >> > <td id="cell" class="sectionhdct" height="350" width="500">
    > > >> > <img id="myPic"src="../document.ASP?ConnectionString="...">
    > > >> > </td>
    > > >> > </tr>
    > > >> >
    > > >> > Document.asp generates this (sanitised version) >>>
    > > >> > <META HTTP-EQUIV="REFRESH" CONTENT="0;URL=Z:\...\myphoto.jpg">
    > > >> >
    > > >>
    > > >> Try:
    > > >>
    > > >> document.asp:
    > > >> <% ' vbs
    > > >> gotourl = "Z:\...\myphoto.jpg" ' or your code result
    > > >> response.redirect gotourl
    > > >> %>

    > >
    > > [please do not toppost on usenet]
    > >
    > > > Hi Evertjan
    > > > Thanks for the reply. I get 'Cannot find server or DNS error' using

    the
    > > > suggested changes.

    > >
    > > That was my purpose, there is something wrong with your IIS settings,
    > > [unless you are trying to open the *asp file directly with your brouwser
    > > and not via localhost.]
    > >
    > > Probably Z: is not accessable under that user.
    > > However that is not an asp subject.
    > > Beter ask in an IIS NG.
    > >
    > >
    > > --
    > > Evertjan.
    > > The Netherlands.
    > > (Please change the x'es to dots in my emailaddress)
    > >
     
    Bob Lehmann, Aug 2, 2006
    #7
  8. Craig

    Evertjan. Guest

    Bob Lehmann wrote on 02 aug 2006 in
    microsoft.public.inetserver.asp.general:

    >>> The anonymous account is a local administrator.

    > Oh, that's nice. Nothing like opening up your server to the world.


    "Coming out"?

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)
     
    Evertjan., Aug 2, 2006
    #8
    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. Chumley Walrus
    Replies:
    1
    Views:
    938
    Joerg Jooss
    Mar 5, 2005
  2. Nym Pseudo

    META NAME and META HTTP-EQUIV

    Nym Pseudo, Sep 26, 2003, in forum: HTML
    Replies:
    1
    Views:
    567
    =?iso-8859-1?Q?brucie?=
    Sep 26, 2003
  3. Duane Johnson

    Meta methods to govern meta data?

    Duane Johnson, Oct 25, 2005, in forum: Ruby
    Replies:
    6
    Views:
    247
    Adam Sanderson
    Oct 28, 2005
  4. Erik Veenstra

    Meta-Meta-Programming

    Erik Veenstra, Feb 7, 2006, in forum: Ruby
    Replies:
    29
    Views:
    402
    Erik Veenstra
    Feb 8, 2006
  5. Erik Veenstra

    Meta-Meta-Programming, revisited

    Erik Veenstra, Jul 21, 2006, in forum: Ruby
    Replies:
    21
    Views:
    447
    Erik Veenstra
    Jul 25, 2006
Loading...

Share This Page