You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OboutSuite/ASPTreeView/vb_ev_process_add_remove.aspx

14 lines
950 B

<%@ Page Language="VB" Inherits="OboutInc.oboutAJAXPage" %>
<%@ Import Namespace="System.Data.OleDb" %>
<script language="VB" runat="server">
' implement a method with the same name as the event
' the arguments of the method must be the same ones we added on client-side using the AddParam function
Public Function OnAddNode(ByVal parentId As String, ByVal childId As String, ByVal textOrHTML As String, ByVal expanded As String, ByVal image As String, ByVal subTreeURL As String) As String
return "The OnAddNode event was executed server-side - the node with the id='" + childId + "' was added under the node with the id '" + parentId + "' The text of the newly created node is '" + textOrHTML + "'"
End Function
Public Function OnRemoveNode(ByVal id As String) As String
return "The OnRemoveNode event was executed server-side - the node with the id='" + id + "' was removed"
End Function
</script>