A
Achim Domma
Hi,
I have a weird problem, which is quite hard to debug: An ascx-Control
seems to be constructed and processed twice. The AutoEventWireup
attribute is set to true. Looking at google, I found a lot of hints
about OnInit and Page_Load called twice. So I set AutoEventWireup to
false and connected the Page_Load event via code. And it's still
called twice!
Then I implemented a new default constructor and a boolean member
which has false as default value. In the ctor this member is set to
true. I have done this, to check if I really get two instances of the
page.
Setting a breakpoint into the ctor, I see that the page is
instantiated twice. So I think it must be another problem than the
AutoEventWireup one. Any hint what might be the reason for such a
behavior? I have no glue at all!
any hint would be very appreciated,
Achim
I have a weird problem, which is quite hard to debug: An ascx-Control
seems to be constructed and processed twice. The AutoEventWireup
attribute is set to true. Looking at google, I found a lot of hints
about OnInit and Page_Load called twice. So I set AutoEventWireup to
false and connected the Page_Load event via code. And it's still
called twice!
Then I implemented a new default constructor and a boolean member
which has false as default value. In the ctor this member is set to
true. I have done this, to check if I really get two instances of the
page.
Setting a breakpoint into the ctor, I see that the page is
instantiated twice. So I think it must be another problem than the
AutoEventWireup one. Any hint what might be the reason for such a
behavior? I have no glue at all!
any hint would be very appreciated,
Achim