473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Iframe .pdf not displaying when deployed on live server

I have created a web page(.aspx) that displays a .pfd page in an
iframe. It does this by building a string of html and then executing
this at a certain point. This code works fine on my development server
but not on my live system - on the live system it brings up a blank
screen.

The code links to a local path on the server for a link to the .pdf -
is this my issue ??

Does anyone have any ideas why this would happen and how i can resolve
this issue???

Code below

Dim sb As System.Text.StringBuilder = New System.Text.StringBuilder
sb.Append("<iframe height=100% width=100% frameborder=no src="
& g_str_Fname & " </iframe>")
Return sb.ToString
the g_str_Fname value is a local path e.g. C:\test.pdf

Nov 19 '05 #1
1 1787
A couple of thoughts...

- Is there no error message displayed on screen or a popup by the browser?
- Since you are using a PDF as the source for the frame you may encounter
problems if the "content expiration" for the virtual containing the PDF is
set to "expire immediately"
- The location of the PDF IS in a virtual directory, isn't it?

Hope this helps...

"cs********@hotmail.com" wrote:
I have created a web page(.aspx) that displays a .pfd page in an
iframe. It does this by building a string of html and then executing
this at a certain point. This code works fine on my development server
but not on my live system - on the live system it brings up a blank
screen.

The code links to a local path on the server for a link to the .pdf -
is this my issue ??

Does anyone have any ideas why this would happen and how i can resolve
this issue???

Code below

Dim sb As System.Text.StringBuilder = New System.Text.StringBuilder
sb.Append("<iframe height=100% width=100% frameborder=no src="
& g_str_Fname & " </iframe>")
Return sb.ToString
the g_str_Fname value is a local path e.g. C:\test.pdf

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: fniyogi | last post by:
Does anyone know how to suppress the "busy"/hourglass cursor that appears when a frame/iframe is loading, as in the g() functon below: <SCRIPT> function g() { if ( Math.floor(Math.random()*2)...
1
by: Kuv patel | last post by:
Hi I am displaying a page inside an Iframe, and I would like to enlarge the iframe window to the size of the browser when the browser window loads up. In the onload event of the browser I am...
2
by: source | last post by:
I have an HTML page, I used an IFRAME within an HTML page. I am displaying data from database within the IFRAME using a grid. Can I just update the IFRAME without refreshing the whole page. Will I...
0
by: csgraham74 | last post by:
I have created a web page(.aspx) that displays a .pfd page in an iframe. It does this by building a string of html and then executing this at a certain point. This code works fine on my development...
26
by: shlomi.schwartz | last post by:
using this example: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Test Page</title> </head>
3
by: jshanman | last post by:
If I try to put a site into an iframe that has "escape frame" code in its source (posted below), it will reload the requested page into the parent instead of the iframe. Is there a way to prevent...
3
by: Sirix42 | last post by:
Hi there, when I use Firefox to run my application (this involves sending an IFRAME request to the servlet and handling the response), there is no delay in displaying the data after each response....
7
by: pb | last post by:
Hi all, I have some code that automatically generates a url depending on user selections. This url is then set as a hyperlink and the user clicks on the link that has the target as an iframe on...
1
by: marco.dini | last post by:
Hello, this is my first time in this forum. We are redesigning our company's corporate site and since we need to add some content from an external application to the homepage, we are considering...
4
by: raymon | last post by:
Hi, I have a page with two iframes that load content from another website. Only one of the iframes is shown at a time, depending on which tab the user is viewing. If user clicks on tab A, he will...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.