Page_Load() not being called

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi!

i have a weird problem with my c# asp.net webform. i am using
Response.Redirect("newPage.aspx") from the "oldPage.aspx". but the
Page_Load() function of "newPage.aspx" is not being called. suggestions
welcome and thanks in advance.
 
Hi,

Set a breakpoint inside the Page_Load method - it should be get called...

Regards - Octavio
 
Newbie said:
already placed breakpoints and it's not stopping at the breakpoint.

private void InitializeComponent()

{

this.Load += new System.EventHandler(this.Page_Load);

}

do you subscribe to Load event like above?
 
problem solved:

this.Load += new System.EventHandler(this.Page_Load);

was missing in the private void InitializeComponent()
 
Back
Top