Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

AddEvent Method (name, handler)

Adds the specified event and handler.

Syntax

CSharp

public void AddEvent (
	string name,
	string handler
)

VisualBasic

Public Sub AddEvent ( _
	name As String, _
	handler As String _
)

ManagedCPlusPlus

public:
void AddEvent (
	String^ name, 
	String^ handler
)

JSharp

public void AddEvent (
	String name,
	String handler
)

Parameters

name (String)

The name of the event.

handler (String)

The name of the handler function for the specified event.

Remarks

This method adds the event and handler to the internal dictionary of events that are converted to client script by the GetScript() method.

Exceptions

ExceptionCondition
ArgumentException

name or handler is null or an empty string ("").

Assembly: System.Web.Extensions (Module: System.Web.Extensions)