Getting started with Extjs: Dynamic Loading Tree Code _ extjs

Source: Internet
Author: User
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



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.