Advanced

Create an Active Hyperlink Using a Database Field

In FrontPage 2000, you can create a hyperlink based on database field data. The sample
database volcano2000 has a field called URL. You can use this to create a table of hyperlinks.

To do this, follow these steps:

  1. Create a new page, and name it "emp_links.asp" (without the quotation marks).
  2. On the Insert menu, point to Database, and click Results.
  3. In Step 1 of the Database Results Wizard, click the Use an existing database connection button, and click to select Volcano2 from the list. Click Next.
  4. In Step 2 of the Database Results Wizard, make sure the Record source option is selected and Employees is selected from the list. Click Next.
  5. In Step 3 of the Database Results Wizard, click Edit List.
  6. In the Displayed Fields dialog box, click to select all of the items in the Displayed Fields list except for First Name, LastName, and URL, and click Remove.
  7. In Step 4 of the Database Results Wizard, click Next.
  8. In Step 5 of the Database Results Wizard, click to select the Display all records together option, and click Finish.
  9. Right-click <<URL>> in the URL column of the results table, and click Hyperlink.
  10. In the Create Hyperlink dialog box, click Parameters.
  11. In the Hyperlink Parameters dialog box, clear the Path box.
  12. Click Insert Field Value, and click to select URL.
  13. To return to your Web page, click OK twice. View your page in your Web browser.

Display an Image Using Data from a Database

With FrontPage 2000, you can use information from a field in a database to display images on your Web page. 

The sample database contains a column called Image. This field contains a file name for an image. You can use this information to display this image.

NOTE: Three images that you can use for this example are located in the Images folder. They are animal1.gif, animal2.gif, and animal3.gif.

To display an image using data from a database, follow these steps:

  1. Create a new page, and name it "displayimages.asp" (without quotation marks).
  2. On the Insert menu, point to Database, and click Results.
  3. In Step 1 of the Database Results Wizard, click the Use an existing database connection button, and click to select Volcano2 from the list. Click Next.
  4. In Step 2 of the Database Results Wizard, make sure the Record Source option is selected and Employees is selected from the list. Click Next.
  5. In Step 3 of the Database Results Wizard, click Edit List.
  6. In the Displayed Fields dialog box, click to select all of the items in the Displayed Fields list except for First Name, LastName, and Image, and click Remove.
  7. In Step 4 of the Database Results Wizard, click Next.
  8. In Step 5 of the Database Results Wizard, click to select the Display all records together option, and click Finish.
  9. Locate the database column value that reads "<<Image>>" and delete it.
  10. In the table cell that you just removed the column value from, insert the animal1.gif picture from the images folder by using the Picture command on the Insert menu. This places the lion image in the table.
  11. Right-click the image you just inserted, and click Picture Properties.
  12. Under Picture Source, click Browse, and then click Parameters.
  13. In the path field, remove the current path and then click Insert Field Parameter and select Image.
  14. Click OK three times. You see a small broken image icon in the column under PicName.
  15. Save the page as show.asp on the File menu.