这种做法是把所有的数据都装载到数据集中,之后利用样式显示/隐藏来显示。没有什么效率可言,只是实现了树形菜单的这种效果 。我的数据库的类别是分3个表来保存的。
<
%@LANGUAGE
=
"
VBSCRIPT
"
CODEPAGE
=
"
936
"
%
>
< ! -- #include file = " ../../include/conn.asp " -->
< !DOCTYPE HTML PUBLIC " -//W3C//DTD HTML 4.01 Transitional//EN "
" http://www.w3.org/TR/html4/loose.dtd " >
< html >
< head >
< meta http - equiv = " Content-Type " content = " text/html; charset=gb2312 " >
< title > 无标题文档 </ title >
< META name = " description " content = " 对公司的简单描述 " >
< META name = " keywords " content = " 公司的主要产品类别和性质,不大于7个词,用“,”隔开 " >
< link rel = " stylesheet " href = " common/style/install_style.css " type = " text/css
< ! -- #include file = " ../../include/conn.asp " -->
< !DOCTYPE HTML PUBLIC " -//W3C//DTD HTML 4.01 Transitional//EN "
" http://www.w3.org/TR/html4/loose.dtd " >
< html >
< head >
< meta http - equiv = " Content-Type " content = " text/html; charset=gb2312 " >
< title > 无标题文档 </ title >
< META name = " description " content = " 对公司的简单描述 " >
< META name = " keywords " content = " 公司的主要产品类别和性质,不大于7个词,用“,”隔开 " >
< link rel = " stylesheet " href = " common/style/install_style.css " type = " text/css