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.
16 lines
946 B
16 lines
946 B
<%@ Page Language="vb" CodeFile="vb_Tree.aspx.vb" Inherits="Tree" %>
|
|
<%@ Import Namespace="obout_ASPTreeView_2_NET" %>
|
|
|
|
<html>
|
|
<head runat="server">
|
|
<title>obout.com - Tutorial for Dnd using ASPTreeView, AJAXPage and TreeDB</title>
|
|
<script type="text/javascript">
|
|
// function used for adding a node - it is triggered when the users clicks on the Add button
|
|
function addNode()
|
|
{
|
|
if(typeof tree_selected_id != "undefined" && document.getElementById("sNewNodeId").value && document.getElementById("sNewNodeText").value)
|
|
{
|
|
// if a node was selected (this will be the parent of the newly created node)
|
|
// and if the id and text of the node were entered, then the node will be created
|
|
ob_t2_Add(tree_selected_id, document.getElementById("sNewNodeId").value, document.getElementById("sNewNodeText").value, null, "folder.gif", null);
|