in,“站名”字段为stations。首先从数据库中读取“站名”并生成“静态”HTML代码的ASP程序,然后把生成的“静态”代码保存到文件stations.inc中。 /*make_stations.asp*/ <% Set fso = Server.CreateObject("Scripting.FileSystemObject") FilePath = Server.MapPath(“station.inc”) Set file = fso.CreateTextFile(FilePath) Set conn = server.CreateObject(“ADODB.Connection”) DBPath = Server.MapPath(“train.mdb”) conn.Open “driver={Microsoft Access Driver (*.mdb)}; dbq=”& DBPath sql = “select stations from tab_train” 页码:[1] [2] [3] [4] [5] [6] 第3页、共6页 |