N
~~~ .NET Ed ~~~
That is exactly what I have noticed, my web custom (composite) control gets
instantiated and initialized on the page, so I see that
CreateChildControls() is called as I am debugging it. What I find strange is
that I see that while within CreateChildControls() the "this.Page" property
is undefined!
That gives me a few problems, namely that I cannot determine if I am in a
PostBack or not, if I use this.Page.IsPostBack I get an "object reference
not initialized". Or is there a way for a composite control to determine if
it is being posted back? Anyway, concerning this particular item, I don't
see the logic of having Page undefined, after all the parent page object
exists and is actually creating its child controls (including the composite
control). You can't have the chic without the chicken, or am I missing
something out of this world?
Emil
instantiated and initialized on the page, so I see that
CreateChildControls() is called as I am debugging it. What I find strange is
that I see that while within CreateChildControls() the "this.Page" property
is undefined!
That gives me a few problems, namely that I cannot determine if I am in a
PostBack or not, if I use this.Page.IsPostBack I get an "object reference
not initialized". Or is there a way for a composite control to determine if
it is being posted back? Anyway, concerning this particular item, I don't
see the logic of having Page undefined, after all the parent page object
exists and is actually creating its child controls (including the composite
control). You can't have the chic without the chicken, or am I missing
something out of this world?
Emil