control ctlWizardStep = Page.LoadControl("Page1.ascx");
((WizardPage)ctlWizardStep).SomeProperty = "Smelly Chicken";
Is this possible?Yes, that should be possible. The only thing I see here is that you are using Page.LoadControl which loads up UserControls. So in order to do what you are asking, you would need to create the WizardPage and have that inherit from UserControl. Then on any other control, you would have that inherit from WizardPage and you should be able to do what you have listed above.
0 comments:
Post a Comment