Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am facing some problem with iframe tag in asp.net application.I have used this code:-
XML
<iframe  src='http://www.tataquality.com/Tem2012.aspx?sn=1&pid=Xb9Z9BDd6KdSAqOBelUguhik9hbNiF7c&sectionid=5SKkpZQmW9+nzqFG4uOVA/g/TntC35rW' id='MyFrame'  frameborder='0' width='1000px' scrolling='yes' height='400px'></iframe>



This code is working fine in all browser but it's not working in Internet Explore 7 or above only then what can i do for this problem suggest me.


Many Many thanks in advance
Posted

1 solution

You don't state what the problem is, but a quick google suggests that IE7 & IFrame with height / width attributes do not play well together. You need to add a style:


HTML
<iframe  src='http://www.tataquality.com/Tem2012.aspx?sn=1&pid=Xb9Z9BDd6KdSAqOBelUguhik9hbNiF7c§ionid=5SKkpZQmW9+nzqFG4uOVA/g/TntC35rW' id='MyFrame'  style='width:1000px; height:400px;'></iframe>


Obviously, you'll need to see whether the other styling attributes work, I can't test them at the moment. This should be in a CSS any way.

This discussion looks useful:
http://social.msdn.microsoft.com/Forums/en-US/iewebdevelopment/thread/043994d0-06a3-48b6-99ee-51f346c09277[^]
 
Share this answer
 

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