Global Class

EPiServer CMS 7.5

Syntax:

C#
public class Global : SiteBase

Base class for global.asax that supports EPiServer-specific features.

Methods

Name
GetDefaultDocuments
GetIdentity
GetOriginalType
GetVaryByCustomString
Global Constructor
Global_PreRequestHandlerExecute
HandleAccessDenied
Init
OnRoutesRegistered
OnRoutesRegistrating
OnValidateRequestAccess
RegisterRoutes
SchemeHostPortMatch
SetIdentity
ToPropertyBag(Object)
ToPropertyBag(Object, IEnumerable(String))

Properties

Name
BaseDirectory
DesignTimeLiveDataAvailable
InstanceName
IsDefaultDocumentsEnabled
IsDesignTime
IsUnitTest
UrlRewriteProvider

Events

Name
RoutesRegistered
RoutesRegistrating

Remarks

The global.asax.cs file on an EPiServer site should inherit from Global. This is a requirement for the site to work.

Examples

The following code example demonstrates the usage of Global to read the BaseDiretory.

 Copy imageCopy
BaseDirectory:
<%= EPiServer.Global.BaseDirectory %>

Inheritance