Table of Contents   Setting Up Database   Setting System DSN   Setting Folder to Execute 
Microsoft Office Family MemberActive Server Pages Sample Web

   Creating ASP File       Creating Forms        Viewing Your ASP

Microsoft FrontPage 98

Creating Forms That Use Active Server Pages (ASP)

 

  You can create ASP files, such as display.asp, to retrieve data dynamically from a data source.
  However, if you want users who browse your web site to be able to add data into the database,
  you must use a form.

   To see an example of Active Server Page queries that allow a user to add to or retrieve data
   from a database, see the ASP Sample Queries page.


   NOTE: The following lesson will incorporate a form with the Active Server Page created in the previous lesson, to
                display specific First Names out of the database.

To set up a form that uses ASP functionality

   1. On the Insert menu, point to Form Field, and click One-Line Text Box.

  Insert One-Line Text box

   NOTE: This will create a Text-box, submit button, and reset button. The dashed box
   surrounding the components is the bounding box of the form.
   mewshot.gif (10543 bytes)

   2. Right-click the text-box.
   3. On the shortcut-menu, click Form Field Properties.
   4. In the Name text box, type FirstName, then click OK.

   Text Box Properties

   5. Right-click within the Form, and click Form Properties.

   Form Properties

   6. In the Form Properties dialog, click Send to other. From the Send to other drop-down
       list choose Custom ISAPI, NSAPI, CGI, or ASP Script.

  Form Properties (Custom ISAPI, NSAPI, CGI, or ASP Script)

   7. Click Options.
   8. In the Action text box, type the following filename:

       Scripts/display.asp

   Options for Custom Form Handler

   9. Click OK.
10. Save the page as form.htm in the root of this web.

 

Back Back     Top Top   Next Next

           Microsoft Software for the Internet © 1997 Microsoft Corporation
All rights reserved. Legal Notices.