Create a new Alert dialog event with alert message and a client side conditional statement specified

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

Syntax

C#
public AlertEvent(
	EventType eventType,
	string message,
	string condition
)

Parameters

eventType
Type: EPiServer.ClientScript..::.EventType
The client side event to show the confirmation dialog for
message
Type: System..::.String
Message shown in the alert dialog
condition
Type: System..::.String
Client script conditional statement used to decide whether the alert dialog is shown.

Examples

AlertEvent alertEvent = new AlertEvent(EventType.Click, "Hello World!", "document.getElementById('myCheckbox').checked == true")

See Also