Jquery. TreeView combined with ASP. Net and database to generate menu navigation bar _ jquery

Source: Internet
Author: User
I have browsed many examples of using the Jquery. TreeView plug-in to generate a tree on the Internet! But most of them are not combined with the database to generate a tree, and it is difficult to apply it to actual projects! The following example uses Jquery. TreeView based on the actual application of the project. Of course, when using the control tree, the corresponding js file is required.
Next we will show you the generated TreeView, hoping to help you! Before use, you need to download the js file and Css style of the Control tree.

Introduction to table structure

M_ID M_Name M_ParentID M_URL M_Sort

Create a new website, add the CSS folder and js folder under the newly created website to store the Css style and JS, and add an image folder to store the TreeView image.
Then we began to implement our functions!
Front-end code

The Code is as follows:


<% @ Page Language = "C #" AutoEventWireup = "true" CodeFile = "Default. aspx. cs" Inherits = "_ Default" %>






Related Article

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.