>Steve,
>
>>No, I stepped through the code and still couldn't figure out why my Page_Load code never executes. I ended up moving on to some other area of the application.
>
>This should be pretty straight-forward...Page_Load is an event handler method, in order for it to fire:
>
>1. You should have the following code in your form's InitializeComponent method which registers the Page_Load method as an event handler for the Load event:
>
>
this.Load += new System.EventHandler(this.Page_Load);
>
>2. You should have the following code in your form's OnInit() method, which calls InitializeComponent:
>
>
override protected void OnInit(EventArgs e)
>{
> this.RequiresSecurity = true;
> //
> // CODEGEN: This call is required by the ASP.NET Web Form Designer.
> //
> InitializeComponent();
> base.OnInit(e);
>}
>
>Is this code executing in your form?
>
>Regards,
That code is there and it is executing, but if I set a breakpoint on one of the lines in my Page_Load, it never hits it.
The way that I have this set up is I have a form called aBusinessWebPage that inherits from OakLeaf.MM.Main.Web.UI.mmBusinessWebPage. That page has a Page_Load event handler with no code, which is registered in the InitializeComponent method, and it has the OnInit code to call InitializeComponent and then call the base.OnInit. This page also has an override of the RedirectToLogin method.
I then created a web page that inherits from my new aBusinessWebPage that has code in the Page_Load to create the bizobj reference, register it, and get the data. It also has the above mentioned OnInit code and the event handler registration code in the InitializeComponent method.