Using ParseControl at Design-Time

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top