Page Load and webcontrol page load

  • Thread starter Thread starter venky
  • Start date Start date
V

venky

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
 
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
 
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?
}
 
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
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top