Meta Refresh results in blank page

C

Craig

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.
 
E

Evertjan.

=?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">
 
C

Craig

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

Evertjan.

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

[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.
 
C

Craig

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. said:
=?Utf-8?B?Q3JhaWc=?= wrote on 01 aug 2006 in
microsoft.public.inetserver.asp.general:

[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.
 
E

Evertjan.

=?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!

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.
 
B

Bob Lehmann

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

Bob Lehmann

Craig said:
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. said:
=?Utf-8?B?Q3JhaWc=?= wrote on 01 aug 2006 in
microsoft.public.inetserver.asp.general:
:

=?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.
 
E

Evertjan.

Bob Lehmann wrote on 02 aug 2006 in
microsoft.public.inetserver.asp.general:
Oh, that's nice. Nothing like opening up your server to the world.

"Coming out"?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top