For reasons owing to the availability of software, I'm stuck working in Visual Studio 2010 (.NET 4.0). I'm developing a site using WebForms, and the prototype utilizes Master Pages, including the standard tabbed menus provided by the default Master Page. (May well abandon MP setup, but for now I'm trying to keep moving forward.)
The problem is that on pages with an iframe, the tabbed menu loses its formatting. Instead of properly displaying in a horizontal layout, the menu items display vertically. Not only is this an unwanted, unattractive artifact, but it pushes the iframe well down the page, making immediate testing of it rather difficult.
It seems to me that I've encountered this issue in the past on a previous project and solved it by enclosing the iframe tags within ASP literals (see first example from previous project). But it's not working here (see second example from current project). A comparison of pages from the working and non-working projects yields nothing of obvious value, except that in the "good" project, the Master Page is nested (the page in question resides in an Admin folder within the main project).
Any suggestions as to what to look for? Thanks in advance.
What I have tried:
<asp:Literal ID="divSearchResults" runat="server"><iframe src="Frames/ContactSearchResultsFrame.aspx" scrolling="auto" frameborder="0" height="200" width="100%"></iframe></asp:Literal>
<--works
<asp:Literal ID="divHandgunsFrame" runat="server"><iframe src="IFrames/Handguns.aspx" scrolling="auto" width="100%" /></asp:Literal>
<--nope