Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Literal Control with IFrame text, trying to remove from page without screen corruption

Thread Tools

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

Posts: n/a

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

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to get screen shots of the Security Screen in Win 2000 Frustrated!! MCDST 2 05-09-2007 11:24 PM
How do we load page into iframe when not on iframe page? Paul Javascript 3 07-04-2005 06:59 AM
Free 42" Plasma Screen if help remove/minimize screen burn ! Computer Support 3 02-05-2005 06:50 AM
What's wrong with rpc-literal? Why use doc-literal? Anonieko Ramos ASP .Net Web Services 0 09-27-2004 09:06 AM
Get form values from iframe (1) to iframe (2) inside a layer in iframe (1) Daedalous Javascript 3 01-16-2004 11:08 AM