469,958 Members | 1,947 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,958 developers. It's quick & easy.

Page Load and webcontrol page load

Hi,

I have a question, i have a web control in my web page. Let say i have
page pag1.aspx and control.ascx and page1 contains control.
I have written code on the page load of page and also the control but
page1 page load is never called. Is there any reason or any setting i
need to do to ?
venky

Nov 19 '05 #1
5 1671
Venky:
something seems odd. No reason why you shouldn't see code from both events
(the Page_Load one first). Coud you provide some sample code of the
problem?

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"venky" <ve************@yahoo.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Hi,

I have a question, i have a web control in my web page. Let say i have
page pag1.aspx and control.ascx and page1 contains control.
I have written code on the page load of page and also the control but
page1 page load is never called. Is there any reason or any setting i
need to do to ?
venky

Nov 19 '05 #2
Is your event hook lost?
Event hook in your InitializeComponent() method commonly.Check that
method,It should look like:
private void InitializeComponent(){
this.Load += new System.EventHandler(this.Page_Load);// lost?
}
--
Help you,Help me.
"venky" wrote:
Hi,

I have a question, i have a web control in my web page. Let say i have
page pag1.aspx and control.ascx and page1 contains control.
I have written code on the page load of page and also the control but
page1 page load is never called. Is there any reason or any setting i
need to do to ?
venky

Nov 19 '05 #3
Hi Venky, following on from Marshals post, in VB the the signature for the
page load handler would be
Sub Page_Load(o as object , e as eventargs) handles mybase.load

HTH jd

"marshal" wrote:
Is your event hook lost?
Event hook in your InitializeComponent() method commonly.Check that
method,It should look like:
private void InitializeComponent(){
this.Load += new System.EventHandler(this.Page_Load);// lost?
}
--
Help you,Help me.
"venky" wrote:
Hi,

I have a question, i have a web control in my web page. Let say i have
page pag1.aspx and control.ascx and page1 contains control.
I have written code on the page load of page and also the control but
page1 page load is never called. Is there any reason or any setting i
need to do to ?
venky

Nov 19 '05 #4

NOpe, it didn't get lost. The event mapping is there but still page load
function is not called but the webcontrol page load is called.

venky
*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #5
i am seeing the code for events, but event from the aspx page load is
not called, i mean if i put a break poing in the page, page load and
also on web control page load, only web control page load is called but
the page's page load is not called

Nov 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by martin | last post: by
3 posts views Thread by Tome73 | last post: by
6 posts views Thread by Dariusz Tomon | last post: by
5 posts views Thread by studio60podcast | last post: by
5 posts views Thread by =?Utf-8?B?bXVzb3NkZXY=?= | last post: by
reply views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.