Microsoft Knowledge Base Email Alertz

This article describes how to return the results from a query as a hyperlink using FrontPage and Active Server Pages (ASP).

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 205980 - Last Review: September 27, 2004 - Revision: 1.1

How to return records from a query as a hyperlink by using ASP in FrontPage 2000

This article was previously published under Q205980
For a Microsoft FrontPage 98 version of this article, see 181208  (http://kbalertz.com/Feedback.aspx?kbNumber=181208/ ) .

On This Page

SUMMARY

This article describes how to return the results from a query as a hyperlink using FrontPage and Active Server Pages (ASP).

Query Information from Microsoft Access Database Using ASP

Use the following procedures to query information from an MS Access database with an ASP web page. After a web project is created you can import an MS Access database to the web so you can make it accessible to use with the ASP web page.

Format Results of a Query as a Hyperlink

  1. Start Microsoft Access 2000
  2. In the Microsoft Access dialog box, click Blank Database and click OK.
  3. In the File name box, type: "Asplink.mdb" (without the quotes) and click Create.
  4. Click the Tables tab. Double-click Create Table in Design View.
  5. In the Field Name box, type Hyperlink.
  6. On the View menu, click Datasheet View.
  7. When you are prompted to save, click Yes, name the table: "Hyperlink" (without the quotes), and then click OK.
  8. If you are asked to create a primary key, click Yes.
  9. In the Hyperlink box, type the following record into the database:
    <a href="hyperlink">TextToDisplay</a>
    						
    where hyperlink is the URL this record will link to and TextToDisplay is the display text for the record. For example, if you want to link to the Microsoft Home Page, you can type the following:
    <a href="http://www.microsoft.com">Microsoft</a>
    						
  10. On the File menu, click Exit.

Create a Web

  1. Start FrontPage and create a new Web.
  2. On the File menu, point to New, and click Web.
  3. Click One Page Web.
  4. In the Please specify a location of the new web box, type the following:
    http://localhost/ASPLink
    						
  5. Click OK

Import Database into Current Web

  1. On the File menu, click Import.
  2. Click Add File.
  3. Select the asplink.mdb file from the file list, and click Open
  4. Click OK.
  5. When you are prompted to create a new database connection, type: "ASPLink" for the name (without the quotes), and click Yes.
  6. Click Yes again. You have now added the database to your web. This allows your web to have access to the database once you have created your ASP page.

Create the ASP Page

In FrontPage, create the ASP page.
  1. On the View menu, click Page.
  2. On the File menu, point to New, and then click the page.
  3. Double-click Normal Page.
  4. On the Insert menu, point to Database, and click Results.
  5. In Step One of the Database Results Wizard, click to select Use an existing database connection, and select ASPLink from the list.
  6. Click Next.
  7. Select the Hyperlink table from the Record Source list, and click Next.
  8. Click Next twice, then click Finish.
  9. Right Click the <<Hyperlink>> column, and select Database Column Value Properties.
  10. Click to select the Column value contains HTML check box, and click OK.
  11. Save the Page.
  12. On the File menu, click Preview in Browser.
  13. Click Microsoft Internet Explorer 5.0, and then click Preview.




REFERENCES

Before you can use the ASP features in FrontPage 2000, you must install the components listed in the following Microsoft Knowledge Base article:
312638  (http://kbalertz.com/Feedback.aspx?kbNumber=312638/ ) FP: What you need to use Active Server Pages (ASP) in FrontPage 2000

For additional information about Active Server Pages and FrontPage, click the article number below to view the article in the Microsoft Knowledge Base:
196721  (http://kbalertz.com/Feedback.aspx?kbNumber=196721/EN-US/ ) FP2000: What Are Active Server Pages?



APPLIES TO
  • Microsoft FrontPage 2000 Standard Edition
Keywords: 
kbhowtomaster kbdatabase kbasp KB205980
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate