473,396 Members | 1,777 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

.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
Nov 17 '05 #1
1 3203
PJ
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" <me*******@yahoo.com> wrote in message
news:15*************************@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

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: George Durzi | last post by:
I created a simple user control which contains a hyperlink to link the user to a topic in a compiled help file. I named all my help topics to have the same name as the aspx they are for. So in...
2
by: C K | last post by:
I am having trouble getting the page_load event to fire from within my usercontrol - my code is below, I'm sure I'm missing something simple. Just your basic web user control - I've just began...
1
by: Andrew Parsons | last post by:
Hi all, I had a weird issue with trying to use a cookie in a ASCX housed on my web forms and I was wondering if I am missing something. I wanted to use the authenticated cookie for the user...
4
by: Frank Schumacher | last post by:
Hi NG, I have 2 problems working with an user control (ascx) and couldn't find a solution yet. I created a simple ascx with some ImageButtons and drag it on a simple Webform, this code was...
1
by: Gonçalo Boléo | last post by:
I have an ASCX control with 2 objects (asp:label and asp:xml) I wan't to add this control using Controls.Add() because my business logic requires to select the correct control to show. I have...
1
by: Anonieko | last post by:
I know Visual Studio lacked support on easily writing code to raise events from a ascx user control ( because you have to hand write them)....
2
by: Peter Kirk | last post by:
Hi I have an ascx (MainCalendarControl.ascx), which includes another ascx, by using this statement at the top of MainCalendarControl.ascx: Register TagPrefix="CalendarUI"...
0
by: CMELLO | last post by:
I have am dynamically loading a web user control based on the click of a tab strip I load the default control for the first tab in the page load event after checking page is not postback. After...
0
by: =?Utf-8?B?Y2luZHk=?= | last post by:
I have am dynamically loading a web user control based on the click of a tab strip I load the default control for the first tab in the page load event after checking page is not postback. After...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.