Can a multi view control be used in a page that uses a master page?

Can a multi view control be used in a page that uses a master page?

Post by Greg » Sat, 26 May 2007 19:07:48


I have a page that uses a Multi-view control. The documentation states
that views must be added at the PreInit (or earlier) stage in the page
life-cycle. This was all working well until I added a master page. At
PreInit, the Multi view control (and also all the other UI controls)
has not been instantiated, so it is impossible to add the views to it.
At page load, all the controls have been instantiated, but at this
point it is too late to add views to the multiview control.

Is there a workaround for this, or should I accept that the multiview
contol cannot be used in a page that uses a master page?