We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

[4673] Programatically Load User Controls

Last post 12-21-2006 12:00 AM by nickbrookewood. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [4673] Programatically Load User Controls

    This thread is for discussions of Programatically Load User Controls.

    • Post Points: 10
  • 12-21-2006 12:00 AM In reply to

    Re: [4673] Programatically Load User Controls

    you could also do the following:

    however define an interface in your app_code directory that simply defines all of the properties that you want in your control, have your control implement this interface then when you load the control you can access the properties like so in the page where the control is loaded:

                Control yourcontrol = LoadControl("UI/YourControl.ascx");

                ((IYourInterface)expander).Property = "some string";













    • Post Points: 5
Page 1 of 1 (2 items)