How to separate Portlets into separate control files?

  1. #1

    How to separate Portlets into separate control files?

    Hey Guys,

    I am trying to create a portal with about 10 different portlets; in order to avoid overloading the portal page, I would like to separate each portlet into a separate UserControl. Unfortunately I can't find an easy way to do so because in order to use an ascx with server-side methods I have to derive it from UserControl, which I cant add to the portal layout.

    How do I go about doing this ?

    Thanks for your help
    Ken
  2. #2

    RE: How to separate Portlets into separate control files?

    Hi,

    1. You can create custom control which inherited from Portlet and add required functionality
    2. You can put portlet content to the UserControl and then add this user control to the portlet body
    3. You can put portlet content to the separate page and set this this page to the AutoLoad (IFrame mode) Url




  3. #3

    RE: How to separate Portlets into separate control files?

    I'm trying to do the same job. I have inherited Widget class from Portlet and dynamically load ascx to the BodyControls collection. It works but with postbacks, Viewstate is lost in this 0.7 version.

Similar Threads

  1. Replies: 0
    Last Post: Jul 24, 2012, 9:01 AM
  2. [CLOSED] Moving javascript into a separate .js file
    By ewgoforth in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 04, 2011, 8:10 PM
  3. Replies: 12
    Last Post: Jan 01, 2011, 1:36 AM
  4. Download and open a file in a separate window
    By unaltro2 in forum 1.x Help
    Replies: 2
    Last Post: Jan 21, 2010, 11:55 AM

Posting Permissions