zoukankan      html  css  js  c++  java
  • .NET 做树状菜单不求人(TreeView控件实战)

    目的:
    通过TreeView控件的运用,从Sql2005的表中生成两级联动的树状菜单。

    最终的显示效果:


    数据库test,主类表为big,子类表为class


    aspx中的TreeView控件的代码
    Code

    cs中的代码:
    Code
     
    cs中引用两个命名空间:
    using System.Data;
    using System.Data.SqlClient;

    OK,大功告成,两级树状菜单完成。且主菜单负责展开和合拢,而二级子菜单为导航链接。
  • 相关阅读:
    Neko's loop HDU-6444(网络赛1007)
    Parameters
    SETLOCAL
    RD / RMDIR Command
    devenv 命令用法
    Cannot determine the location of the VS Common Tools folder.
    'DEVENV' is not recognized as an internal or external command,
    How to change Visual Studio default environment setting
    error signing assembly unknown error
    What is the Xcopy Command?:
  • 原文地址:https://www.cnblogs.com/kingfly/p/1571016.html
Copyright © 2011-2022 走看看