Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Composite User Control event execution question

Thread Tools

Composite User Control event execution question

Posts: n/a

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.


Help appreciated.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Capture an Event in a composite control From control on a page ASP .Net 1 08-10-2006 04:17 PM
Losing Composite Control property that another Composite Control ... Chad ASP .Net Building Controls 0 02-01-2005 09:01 PM
Composite Control - Event not firing in child control Chris Simmons ASP .Net Building Controls 3 10-28-2004 09:45 PM
Possible to create a composite control that has a child control that is a validator that validates the composite control itself? Jonathan Eric Miller ASP .Net Building Controls 2 07-22-2004 10:58 PM
Composite control with dynamic composite controls sleigh ASP .Net 1 02-12-2004 06:24 PM