Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows Authentication
Message
 
To
07/01/2004 17:15:14
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00863824
Message ID:
00865046
Views:
35
Steve,

>I created a new subclass of mmBusinessWebPage and created an override of the RedirectToLogin method. It does what I need it to do, but I must be missing something in my subclass because now the Page_Load event doesn't fire on my pages that inherit from this new subclass.

Actually, Page_Load is an event handler method that needs to be registered with the form's Load event. For example, the following code is found in mmBaseWebPage:
#region Web Form Designer generated code
/// <summary>
/// Init event handler
/// </summary>
/// <param name="e"></param>
override protected void OnInit(EventArgs e)
{
	//
	// CODEGEN: This call is required by the ASP.NET Web Form Designer.
	//
	InitializeComponent();
	base.OnInit(e);
}
		
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{    
	this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform