Ask a Question related to ASP.NET General, Design and Development.
-
MeDhanush #1
.ascx page_load event
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
MeDhanush Guest
-
Call The Page_load Event
Hi Dears I want to call the Page_load Event every 5 sec, how can I do that? I have no Ideia what I should do. I put in my web form the Timer... -
.ascx UserControl Properties are set after Page_Load only on PostBacks
I wanted to have a hierarchical DataGrid so I created a User Control that has a DataGrid to act as the Child Grid. I put it inside a pageable... -
No Page_Load event when aspx is in iFrame?
It might be me but... I dont seem to get a Page_Load event when a opening an ASPX in an iFrame. I do geta Page_Load event when an item on the... -
Access to Page_Load Event from the .ascx control
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... -
Page_Load event doesn't appear in the trace
Look at you "web generated code" section of the code behind file. Make sure in the IntializeComponents method there is something like this.Load... -
PJ #2
Re: .ascx page_load event
I'm not sure what you mean by getting access to the page load event. When a
page parses the text in the aspx page, it creates an appropriate object for
that control and gives a reference to that control w/ any variable that is
declared in the page class that has the same name as the id
attribute/property of the control. This happens in the AddParsedSubObject
event before the Page_Load is run. Also, controls have a .Page property
that is a reference to the page that they belong to.
"MeDhanush" <medhanush@yahoo.com> wrote in message
news:15e9d0f4.0306241247.45e3cc7@posting.google.co m...> 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
PJ Guest



Reply With Quote

