Custom CompositeControl and Page LifeCycle RRS feed

  • Question

  • User56700650 posted

    I have created a very simple CompositeControl but for some reason some postbacks triggers Page_Load() then CreateChildControls() while other postbacks (seems to be every other) triggers CreateChildControls() then Page_Load().

    Any ideas as to why this might be?

    Wednesday, July 16, 2008 10:33 AM


  • User56700650 posted

    By overriding OnPreRender and explicitly calling CreateChildControls() it always calls Page_Load() then CreateChildControls().

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, July 16, 2008 12:40 PM