how to call aspx page in tabstrip

3 posts, 0 answers
  1. priya nallaperumal
    priya nallaperumal avatar
    23 posts
    Member since:
    Nov 2009

    Posted 24 Nov 2009 Link to this post

    how to call aspx page instead of ascx page in tabstrip rad multipage.




    protected
    void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)

     

    {

     

    string userControlName = e.PageView.ID + ".ascx";

     

     

    Control userControl = Page.LoadControl(userControlName);

     

    userControl.ID = e.PageView.ID +

    "_userControl";

     

    e.PageView.Controls.Add(userControl);

     

     

     

     

    //e.PageView.Controls.Add(f1);

     

    }

  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 24 Nov 2009 Link to this post

    Hi priya nallaperumal,

    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


    Best wishes,
    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.
  3. priya nallaperumal
    priya nallaperumal avatar
    23 posts
    Member since:
    Nov 2009

    Posted 25 Nov 2009 Link to this post

    Thanks.
Back to Top