Demo: http://asp2004.net/temp/treemenu/
Download address: http://asp2004.net/temp/treeMenu.rar
Key code:
<% set conn = server.createObject ("adoDb.connection") connStr = "dbq =" server.mappath ("db1.mdb") "; defaultdir =; driver = {Microsoft Access Driver (* .mdb)} "Conn.open connStrfunction menu (id) SET RS = Server.createObject (" AdoDb.Recordset ") SQL =" SELECT * from menu where id1 = "& id" r r r r r r s r r r = "r o en s , 1IF = 0 dam.close set = Nothing exit functionEND iFRESPONSE.WRIT FUNCTIONEND IFRESPONSE.WRITE ("