DW + ASP Turn Dynamic Secondary Menu

zhaozj2021-02-16  55

I compare B, I don't know how to use video to solve, I have to write it with me.

Under normal circumstances, this situation is useful to the second-level directory. For the JS currently passed by the website, there is no more than the JS code that is like me like me like my rookie. . A bit for ... A bit array.

Tony said nonsense, cut into the topic.

First, you have to build a table, of course, if you have built a directory in your table, this step can be omitted. But one thing to remind:

This table is the basis for the use of this example (I don't know if it is right.).

Since I use the table is Access, I don't say it, I only list the corresponding field name of this two tables (Database Name: db.mdb):

Table name: Type_tree - Parental class field: type_id (Auto Number) TYPE_NAME (Category Name)

Table Name: S_TYPE - Sub-class field: ID (Auto Number) S_NAME (Submate Name) TYPE_ID (Parent Class ID) - corresponds to the parent class

Now is a database connection:

DIM CONN, ConnStRset Conn = Server.createObject ("AdoDb.Connection") connStr = "provider = microsoft.jet.Oledb.4.0;" Connstr = Connstr & "Data Source =" & Server.MAppath ("db.mdb") Conn.open Connstr or above should not be explained, it is a common code. .

Now enter substantive operation :)

The second-level related menu is generally the following menu, here I don't excera way, use the drop-down menu.

But there is a place here.

Just use it is

Jump menu, this is very important, success or not, is there anything right!

Here is the code of this jump menu!