L
lisa
I have a server control. It has a Layout property, a Height property,
and a Width property. What happens in the Height and Width property
depends on the Layout.
Unfortunately, what seems to be happening is that when I run a page
that has my control in it, the Height and Width properties are
initialized from ViewState before the Layout property. As a result,
the Height and Width properties are assuming a Layout property of 0
(it's an enum property, and that's what you get when there's no value).
Is there a way that I can force my page to initialize the Layout
property first? I've tried moving it above them in the code, on the
chance that it's processing from the top down, but that didn't have any
effect.
Can anyone help?
Thanks,
Lisa
and a Width property. What happens in the Height and Width property
depends on the Layout.
Unfortunately, what seems to be happening is that when I run a page
that has my control in it, the Height and Width properties are
initialized from ViewState before the Layout property. As a result,
the Height and Width properties are assuming a Layout property of 0
(it's an enum property, and that's what you get when there's no value).
Is there a way that I can force my page to initialize the Layout
property first? I've tried moving it above them in the code, on the
chance that it's processing from the top down, but that didn't have any
effect.
Can anyone help?
Thanks,
Lisa