This is a migrated thread and some comments may be shown as answers.

Dynamically Loading asPx pages to pageView

2 Answers 88 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Hk
Top achievements
Rank 2
Hk asked on 07 Jan 2009, 04:08 PM
How can I dynamically load an ASPX page to a pageView?
When I needed to load ASCX, I used these functions:
private void LoadTab(WizardTab tab) 
        { 
            // Enabling the tab 
            RadTab radStripCurrentTab = ConfigStrip.Tabs.FindTabByValue(tab.TabId.ToString()); 
            if (radStripCurrentTab != null
                radStripCurrentTab.Enabled = true
 
             
 
 
            // Loading the pageView into it 
            RadPageView pageView = new RadPageView(); 
            pageView.ID = tab.TabControlPath; 
            pageView.Selected = true
            ConfigMultiPage.PageViews.Add(pageView); 
 
 
        } 
 
protected void ConfigMultiPage_PageViewCreated(object sender, RadMultiPageEventArgs e) 
        { 
            RadMultiPage p = (RadMultiPage)sender; 
             
             
            AbstractConfigWizardTab tabControl = (AbstractConfigWizardTab)LoadControl(e.PageView.ID); 
            tabControl.PackageId = PackageId; 
            tabControl.ID = e.PageView.ID + "userControl"
            e.PageView.Controls.Add(tabControl); 
            ViewState["pv" + (ConfigMultiPage.PageViews.Count - 1).ToString()] = e.PageView.ID; 
        }  
 
 


But now I didn't find any way to load an ASPX! can u tell me how?

2 Answers, 1 is accepted

Sort by
0
Bryan Tan
Top achievements
Rank 1
answered on 06 Apr 2010, 09:01 AM
any solution from telerik expert?
0
Yana
Telerik team
answered on 08 Apr 2010, 04:18 PM
Hi Bryan Tan,

You cannot load directly aspx page in the pageview, you can add iframe to the pageview to achieve this.

Regards,
Yana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TabStrip
Asked by
Hk
Top achievements
Rank 2
Answers by
Bryan Tan
Top achievements
Rank 1
Yana
Telerik team
Share this question
or