Literal Control with IFrame text, trying to remove from page without screen corruption

N

NeilG

Hi,

I have an ASPX page with a literal control on the page. The page
structure is like a frameset (but I dont use frames, this is just to
give you an idea of how it looks) with records down the left and a
main 'viewer' to the right of this. When the user clicks on a record
the details are loaded into the main area.

When the user clicks on a certain record that has a PDF attachment
they can chose to view that PDF in the main viewer area. The PDF is
loaded by setting the text property of the IFrame to be a aspx that
loads that pdf (no custom code, just sets Response.ContentType).

The problem I have is that my 'close pdf' button does not work
correctly. All it should do is make that literal invisible so it does
not render. BUT when i do this the screen gets 'corrupted' and the
next record you load there is a mess. Scrolling is a complete mess
etc. Its as though the IFrame causes IE to screw up even though i have
told .Net to not render the literal control.

I have tried the following two approaches:

- make literal control invisible
- set text property to be ""

Any help would be really appreciated


Neil
 

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

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top