作者:理想轉(zhuǎn)貼自:理想帝國(guó)
利用ACCESS創(chuàng)建數(shù)據(jù)庫(kù)listBase.mdb:數(shù)據(jù)表:listTable數(shù)據(jù)字段:listIdlistNamelistInfoparentId
連接方法:
把以上代碼保存成文件:initialize.asp
下面這段程序代碼是用來顯示目錄樹用的,保存成文件:inc.asp
0thenresponse.write(""&chr(13))ifsNum=sRec.recordcountthenresponse.write(""&chr(13))elseresponse.write(""&chr(13))endifresponse.write(""&chr(13)&""&chr(13))response.write(""&chr(13)&""&server.HTMLEncode(sRec("listName"))&""&chr(13)&"添加編輯"&chr(13))response.write("刪除"&chr(13)&""&chr(13)&""&chr(13)&""&chr(13)&""&chr(13)&""&chr(13))response.write("")ifsNum=sRec.recordcountthenresponse.write("