Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I load a aspx page in IFRAME, The content of the page always warped into <pre> tag How to solve this?

Because of this Website shows the html code of the page that load in IFRAME.

But when I load a html page it works fine.

Here is the code,
ASP.NET
<iframe id="frameNews" name="framePressRelease"  runat="server" class="iframe" src="PressRelease.aspx" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>

Please help me,

Thank you,
Ravi.
Posted
v3
Comments
Unusual. Can you provide more information?
rrlakmal 29-Apr-14 4:46am    
Here is the screenshot of How it looks like on web
https://www.mediafire.com/?zklqbj1w6ebrvd7.

Here is the screenshot of How it looks on chrome developer tool
https://www.mediafire.com/?gamx9nqfy11s9lr

Please help me..!
ZurdoDev 29-Apr-14 20:54pm    
Is the pre tag causing a problem?
rrlakmal 29-Apr-14 22:18pm    
Yes because of <PRE> tag web page shows the actual html code.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900