Class EventBase

Abstract base class for client side event handlers

Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.ClientScript.Events
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public abstract class EventBase

Constructors

EventBase(EventType)

Initializes a new instance of the EventBase class.

Declaration
public EventBase(EventType eventType)
Parameters
Type Name Description
EventType eventType

The client side event for which the event is triggered..

Properties

EventType

The client side event for which the event is triggered.

Declaration
public virtual EventType EventType { get; set; }
Property Value
Type Description
EventType

Methods

AttachEvent(ScriptManager, String)

AttachEvent is responsible for adding the event to the scriptmanager. This method must be overridden by all control developers inheriting this class.

Declaration
public abstract void AttachEvent(ScriptManager scriptManager, string clientId)
Parameters
Type Name Description
ScriptManager scriptManager

The ScriptManager to create the events in.

System.String clientId

The control that will raise the event

Extension Methods