Adds the specified event and handler.
Syntax
CSharp
VisualBasic
Public Sub AddEvent ( _
name As String, _
handler As String _
)
ManagedCPlusPlus
JSharp
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
Assembly: System.Web.Extensions (Module: System.Web.Extensions)