asp三级联动

2024-11-22 21:49:56
推荐回答(1个)
回答1:

<%
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.Mappath("db1.mdb")
'=========================================================
'表
'---------------------------------------------------------
'大类:F_Class 字段:Class_ID,Class_Name
'小类:F_nClass 字段:nClass_ID,nClass_Name,ClassID
'细目:F_Item 字段:Item_ID,Item_Name,nClass_ID.Class_ID
'---------------------------------------------------------
'测试Page
'---------------------------------------------------------
'Request.form("FClass")
'Request.form("FnClass")
'Request.form("FItem")
'=========================================================
%>




无标题文档








三级联动:

<%
Dim Count1,RsClass1,sqlClass1
set RsClass1=server.createobject("adodb.recordset")
sqlClass1="select * from F_Class"
RsClass1.open sqlClass1,conn,1,1
%>











http://www.52first.com/tags.asp