Step Three: Database display Chapter
Site has been built, DW also managed, database tables have been built, but also a little Tim. That's it. DW is also a powerful feature: connect the database and display the record.
1, open the DW, the site inside the first new ASP page (index.asp). Select the Database tab in the Applications panel. As soon as we set up the site in front, select the document type (that is, our choice of ASP JavaScript) and also test the server (http://localhost/newgn/); now we see that the fourth step left is not ticked.
Now click on the "+" number and select "Custom connection string".
2, in the bounce out of the Custom Connection string dialog box, "Connection name" casually write one. The "connection string" should be filled out properly. Apply absolute path when "use driver on this computer": Driver={microsoft access DRIVER (*.mdb)};D bq=d:\newgn\database\cnbruce.mdb Otherwise "use the driver on the test server "MapPath conversion path: Driver={microsoft Access Driver (*.mdb)};D bq=" & Server.MapPath ("/newgn/database/cnbruce.mdb") Note: If you want to upload to the Web page can be directly used MapPath.
Click "Test", the success is cool.