Dynamically load .apsx pages in Tabstrip.

2 posts, 0 answers
  1. Neeta
    Neeta avatar
    3 posts
    Member since:
    Jun 2009

    Posted 01 Sep 2009 Link to this post

    How can I dynamically load an ASPX page to a pageView in a TabStrip?
  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 02 Sep 2009 Link to this post

    Hello h,

    The easiest way to achieve your goal is to load UserContros (ascx) in the pageviews, but not aspx files. Still if you really have to load aspx files inside the pageview you can do that in an IFRAME only. Here's a sample code snippet that demonstrates the approach.

    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server">  
            <Tabs> 
                <telerik:RadTab runat="server" Text="Root RadTab1" NavigateUrl="http://www.yahoo.com" Target="targetFrame">  
                </telerik:RadTab> 
                <telerik:RadTab runat="server" Text="Root RadTab2" NavigateUrl="http://www.google.com" Target="targetFrame">  
                </telerik:RadTab> 
                <telerik:RadTab runat="server" Text="Root RadTab3" NavigateUrl="http://www.msn.com" Target="targetFrame">  
                </telerik:RadTab> 
            </Tabs> 
        </telerik:RadTabStrip> 
        <iframe name="targetFrame" style="width: 879px; height: 497px"></iframe> 
    </form> 

    All the best,
    Paul
    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.
Back to Top