K
Kristof Berger
Hi Everyone!
I'm currently building a control, that should display content defined by an
xml-description file.
The control is running perfectly at runtime.
However, while designing the pages, containing controls of this type, the
control does not render the content assigned to it.
There is a null-reference axception being thrown, when the control calls the
pages ParseControl-Method.
It's not the page being null, but the templateparser (or alike).
I tried instantiating my own instance of System.Web.UI.Page, when in
design-time, but this failed.
I then found a reference to a method calles DesignerInitialize() (which is
hidden in Intelli-Sense, but available). This should initialize everything
the page needs in order to parse the controls - but it didn't.
Is there any way to use parse-controls in design-time or not?
One should believe there is a way - any hints?
TIA
- Kristof
I'm currently building a control, that should display content defined by an
xml-description file.
The control is running perfectly at runtime.
However, while designing the pages, containing controls of this type, the
control does not render the content assigned to it.
There is a null-reference axception being thrown, when the control calls the
pages ParseControl-Method.
It's not the page being null, but the templateparser (or alike).
I tried instantiating my own instance of System.Web.UI.Page, when in
design-time, but this failed.
I then found a reference to a method calles DesignerInitialize() (which is
hidden in Intelli-Sense, but available). This should initialize everything
the page needs in order to parse the controls - but it didn't.
Is there any way to use parse-controls in design-time or not?
One should believe there is a way - any hints?
TIA
- Kristof