Hi I had the following iframe defined in one of my aspx page.
<iframe id=”MyIframe” src=”http://www.bing.com” runat=”server” onload=”CallHello();”></iframe>
The page was working fine. However as soon as I specified the same iframe inside a master page, I started getting following error.
| Line 4: </asp:Content> Line 5: <asp:Content ID=”Content2″ ContentPlaceHolderID=”ContentPlaceHolder1″ Runat=”Server”> Line 6: <iframe ….src=http://www.bing.com…. Line 7: </asp:Content>
Line 8: |
So here to resolve the error either remove the runat or onload attribute.
Bye.
Discover more from Nishant Rana's Weblog
Subscribe to get the latest posts sent to your email.

Thanks for this but I would also love to know why this error occurs! What is it that causes these two properties to break when used inside a content page.
LikeLike