Add a custom client side event listener as a function reference

Namespace:  EPiServer.ClientScript
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public void AddEventListener(
	Control control,
	string eventName,
	string eventHandler
)

Parameters

control
Type: System.Web.UI..::.Control
The control to add an event listener for
eventName
Type: System..::.String
Name of the client side event with the "on" prefix omitted
eventHandler
Type: System..::.String
Client side event function reference

See Also