PanelBar is not working when i put iframe in aspx

2 posts, 0 answers
  1. bborie0107
    bborie0107 avatar
    21 posts
    Member since:
    Aug 2006

    Posted 06 Nov 2009 Link to this post


    Hi

    I have a scary situation when i use RadPanelBar

    Below is Simple aspx page  

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %> 
     
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     
    <html xmlns="http://www.w3.org/1999/xhtml" > 
    <head runat="server">  
        <title></title>  
    </head> 
    <body> 
        <form id="form1" runat="server">  
        <table> 
        <tr> 
        <td> 
        <div> 
            <asp:ScriptManager ID="ScriptManager1" runat="server">  
            </asp:ScriptManager> 
            <telerik:RadPanelBar ID="RadPanelBar1" runat="server">  
                <Items> 
                    <telerik:RadPanelItem runat="server" Text="LargeMenu">  
                        <Items> 
                            <telerik:RadPanelItem runat="server" Text="SubMenu1">  
                            </telerik:RadPanelItem> 
                            <telerik:RadPanelItem runat="server" Text="SubMenu2">  
                            </telerik:RadPanelItem> 
                        </Items> 
                    </telerik:RadPanelItem> 
                </Items> 
            </telerik:RadPanelBar>      
        </div> 
        </td> 
        <td> 
          <div > 
             <iframe  id="LinkFrame"  src="http://www.google.com"  />/>  
          </div> 
        </td> 
        </tr> 
        </table> 
        </form> 
    </body> 
    </html> 
     

    In this page RadPanel is not working  I can't expand Root Node
    But if i eliminate iframe (ID="LinkFrame") RadPanel works fine as i expected .

    Am i missing Something?

    Regards,
    Park

    PS:
    After i posted i put runat="server" in iframe tag it works fine But i don't get what runat="server" make a difference
    I worked with java and jsp this is the first time of aspx project


  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 06 Nov 2009 Link to this post

    Hello bborie0107,

    Iframe tags must be fully closed in order to work properly. Try replacing this:
    <iframe  id="LinkFrame"  src="http://www.google.com"  />
    with this:
    <iframe  id="LinkFrame"  src="http://www.google.com" ></iframe>

    You can check this blog post for additional info.

    Regards,
    Albert,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top