UserControls have a page_load event as well as pages. when the Load event
occurs for the page, the load events for all child controls are recursively
called.

--
Nikolaus R. Hruska
AASHTO Materials Reference Laboratory
National Institute of Standards and Technology
[url]http://amrl.net[/url]
[email]nhruska@amrl.net[/email]


"MeDhanush" <medhanush@yahoo.com> wrote in message
news:15e9d0f4.0306231157.462fb2b5@posting.google.c om...
> Hi,
>
> I'm curious about the way user control .ascx gets access to the
> Page_Load event.
> As custom user control's inheritance is,
> Object
> ^
> |
> |
> Control
> ^
> |
> |
> TemplateControl
> ^
> |
> |
> UserControl
> ^
> |
> |
> CustomUserControl
> In this inheritance tree, there is no page object.
> So, does user control gets access to Page_Load event just by declaring
> in the web form Page ? Can sb pl clarify this for me ?
>
> TIA
> Kishore