此代码是从网上下载的资源,后经过修改
在此感谢原著作者

----------------------------web.config----------
<httpHandlers>
<add verb="POST,GET" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro" />
</httpHandlers>
--------------------------Tree.aspx

转载: ajax和c#.net相结合的树型菜单<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Tree.aspx.cs" Inherits="_Default" %>
转载: ajax和c#.net相结合的树型菜单
转载: ajax和c#.net相结合的树型菜单
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
转载: ajax和c#.net相结合的树型菜单
转载: ajax和c#.net相结合的树型菜单
<html xmlns="http://www.w3.org/1999/xhtml" >
转载: ajax和c#.net相结合的树型菜单
<head runat="server">
转载: ajax和c#.net相结合的树型菜单
<title>Ajax Efficient Tree</title>
转载: ajax和c#.net相结合的树型菜单
<link type="text/css" href="css/tree.css" rel="stylesheet">
转载: ajax和c#.net相结合的树型菜单
</head>
转载: ajax和c#.net相结合的树型菜单
<body>
转载: ajax和c#.net相结合的树型菜单
<form id="form1" runat="server">
转载: ajax和c#.net相结合的树型菜单
<div>
转载: ajax和c#.net相结合的树型菜单
<asp:Panel ID="Panel1" runat="server" Height="300px" Width="100px">
转载: ajax和c#.net相结合的树型菜单
<div id="CategoryTree" class="TreeMenu" style="width: 150px"></div>
转载: ajax和c#.net相结合的树型菜单
</asp:Panel>
转载: ajax和c#.net相结合的树型菜单
<script language="jscript">
转载: ajax和c#.net相结合的树型菜单 var tree
= document.getElementById("CategoryTree");//获取上面那个div的id名称
转载: ajax和c#.net相结合的树型菜单
var root = document.createElement("li");
转载: ajax和c#.net相结合的树型菜单 root.id
= "li_0";
转载: ajax和c#.net相结合的树型菜单 tree.appendChild( root );
转载: ajax和c#.net相结合的树型菜单 ExpandSubCategory(
0 );
转载: ajax和c#.net相结合的树型菜单 function ExpandSubCategory( categoryID )


--------------------Tree.aspx.cs------------

转载: ajax和c#.net相结合的树型菜单using System;
转载: ajax和c#.net相结合的树型菜单
using System.Data;
转载: ajax和c#.net相结合的树型菜单
using System.Configuration;
转载: ajax和c#.net相结合的树型菜单
using System.Web;
转载: ajax和c#.net相结合的树型菜单
using System.Web.Security;
转载: ajax和c#.net相结合的树型菜单
using System.Web.UI;
转载: ajax和c#.net相结合的树型菜单
using System.Web.UI.WebControls;
转载: ajax和c#.net相结合的树型菜单
using System.Web.UI.WebControls.WebParts;
转载: ajax和c#.net相结合的树型菜单
using System.Web.UI.HtmlControls;
转载: ajax和c#.net相结合的树型菜单
转载: ajax和c#.net相结合的树型菜单
public partial class _Default : System.Web.UI.Page
dt.Columns.Ad

 


相关文章:

  • 2021-11-24
  • 2021-07-05
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2022-01-23
  • 2022-02-04
  • 2022-03-05
猜你喜欢
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2022-01-28
相关资源
相似解决方案