Greetings!
I have an iframe in a web site that is not loaded when I try to view it in other browser than IE (IE works correctly).
The src attribute is set dinamically in the code behind.
The iframe is contained in an ascx page.
The web site is developped in ASP.NET/C# 1.1
Here is the HTML code:
<table id="Table1" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0"> <TR> <TD vAlign="top" align="right" width="15%"></TD> <TD style="WIDTH: 880px" vAlign="top" align="left"> <asp:label id="SketchNoDelete" runat="server" Visible="False" ForeColor="Red">You can't delete sketches that were previously saved.</asp:label></TD> <TD vAlign="top" align="right" width="20%"></TD> </TR> <tr> <td vAlign="top" align="right" width="15%"><asp:label id="SketchesLabel" runat="server">Sketches:</asp:label></td> <td style="WIDTH: 880px" vAlign="top" align="left"> <P><INPUT id="sketchFileName" style="WIDTH: 440px; HEIGHT: 22px" type="file" size="54" runat="server"> <asp:button id="Upload" runat="server" Text="Upload"></asp:button> <asp:button id="Draw" runat="server" Text="Draw"></asp:button><BR> <asp:label id="MaxFileSizeNote" runat="server">A maximum of 5Mb is allowed for each file.</asp:label><asp:label id="SketchError" runat="server" ForeColor="Red" Visible="False">The sketch was not recognized as a valid image.</asp:label><asp:label id="SketchTooBig" runat="server" ForeColor="Red" Visible="False">The file was too big.</asp:label><asp:label id="SketchNotFound" runat="server" ForeColor="Red" Visible="False">Unable to locate the request address on the map.</asp:label></P> </td> <td vAlign="top" align="right" width="20%"> <DIV style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; OVERFLOW: auto; BORDER-LEFT: black 1px solid; WIDTH: 266px; BORDER-BOTTOM: black 1px solid; HEIGHT: 100px" align="left"><asp:checkboxlist id="SketchList" runat="server" Width="160px"></asp:checkboxlist></DIV> <asp:button id="Delete" runat="server" Text="Delete"></asp:button></td> </tr> <TR> <TD colSpan="3"></TD> </TR> <TR> <TD colspan="3" align="center"> <iframe id="kMapFrame" style="DISPLAY: none" name="kMapFrame" frameBorder="1" runat="server" width="830px" height="630px"> </iframe> </TD> </TR> <tr> <td></td> </tr> <tr> <td colspan="2" align="right"> <asp:Button id="getImageButton" runat="server" Text="Get image" Visible="False"></asp:Button> </td> </tr> <TR> <TD colSpan="3"></TD> </TR> <tr> <td align="right" colSpan="3"> <asp:button id="Save" runat="server" Text="Save"></asp:button><asp:button id="Cancel" runat="server" Text="Cancel"></asp:button></td> </tr></table>
Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!
You found my problem. In the HTML code, I set the Display to none at the begining and when the user clicks on the Draw button, I change the style to display the iframe but I did it wrong:
IT issues often require a personalized solution. With Ask the Experts™, submit your questions to our certified professionals and receive unlimited, customized solutions that work for you.
Premium Content
You need an Expert Office subscription to comment.Start Free Trial