Looking for the v10 manual? Visit our new user's guide!
 
Search Descriptions Version
 
 
This article applies to: ML v7, ML8, MultiStore

Accessing methods from Global.asax.cs. via ASPDNSFCommon/AppLogic.cs


Synopsis
You can use AspDotNetStorefrontCommon/AppLogic.cs methods named Custom_*.  However, the code-behind already references AspDotNetStorefrontCommon, when trying to reference the startup function from AspDotNetStorefrontCommon is not allowed because of circular reference possibilities.

Procedure
Global.asax.cs is defined in the ASPDNSFApplication.dll and methods inside it must be appropriately handled.

The methods from Global.asax.cs can still be accessed via ASPDNSFCommon/AppLogic.cs.  Search for "CUSTOMGLOBALLOGIC"...that region will have 7 custom methods for

Application_BeginRequest 
Application_EndRequest 
Application_Error 
SessionEnd 
SessionStart 
ApplicationEnd 
ApplicationStart

These methods will fire when their respective sections in the global.asax.cs will be executed.  There's also an alternative work around on this at the forums - http://forums.aspdotnetstorefront.com/showthread.php?t=11626