Composite User Control event execution question

J

Jacques

Hi,

I'm building a composite user control the parent of which sets the state of
it's child controls using a method that the developer calls.

So for example...
An aspx page loads up the parent user control dynamically by creating a
Control instance. Once this is done they call a BuildControl method which I
have defined in a base User Control class from which all other user controls
inherit. This method is there to allow the user/developer to first set all
the relevant variables before having the User Control finally render.

Problem: I have a small bit of code in the Page_Load event that checks for
values, then I have the BuildControl method called by the user/developer. As
far as I know, the Page_Load event should fire then the method that is
called by the user. Yet I have breakpoints set in my code and the page_load
event is being fired after my BuildControl method.

Waaaaaaat?

Help appreciated.

Jacques
 

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
474,137
Messages
2,570,797
Members
47,342
Latest member
eixataze

Latest Threads

Top