HighTechTalks DotNet Forums  

Re: Access to Page_Load Event from the .ascx control

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss Re: Access to Page_Load Event from the .ascx control in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Nikolaus Hruska
 
Posts: n/a

Default Re: Access to Page_Load Event from the .ascx control - 07-02-2003 , 11:04 AM






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
http://amrl.net
nhruska (AT) amrl (DOT) net


"MeDhanush" <medhanush (AT) yahoo (DOT) com> wrote

Quote:
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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.