Extjs dynamically loads the implementation code of the tree. For more information, see. Extjs dynamically loads the tree. First, design the table for storing the tree information in the database.
The Code is as follows:
USE [KimiExtjs]
GO
/***** Object: Table [dbo]. [Trees] script Date: 04/08/2010 22:12:25 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
Create table [dbo]. [Trees] (
[Tid] [varchar] (40) COLLATE Chinese_PRC_CI_AS not null, --- node ID Primary Key Guid
[ParentId] [varchar] (40) COLLATE Chinese_PRC_CI_AS NULL, --- Father's Day point ID 0 represents the root directory
[ContentText] [varchar] (800) COLLATE Chinese_PRC_CI_AS NULL, --- actual content of the node
[StrHref] [varchar] (800) COLLATE Chinese_PRC_CI_AS NULL, --- node link address
[HrefTarget] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL, --- Target
CONSTRAINT [PK_Trees] PRIMARY KEY CLUSTERED
(
[Tid] ASC
) WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
After building the data table, we will start the development of the application program. First, the page design, the html code is as follows:
The Code is as follows:
<% @ Page Language = "C #" AutoEventWireup = "true" CodeBehind = "Main. aspx. cs" Inherits = "Com. KimiYang. Web. Main" %>
No title page