HOW TO: Set Up User and Parameter Populated Criteria Fields in FrontPage 2000 (269582)
The information in this article applies to:
- Microsoft FrontPage 2000 Service Release 1 (SR-1)
This article was previously published under Q269582 SUMMARY
The following article describes how you can use a hyperlink parameter in one frame of a frames page to populate the criteria in a database results region that takes user-defined criteria in a second criteria field.
Please follow these steps in the order presented.
back to the top
Set Up the Frames
First, you must create the frames page. To create the frames page, follow these steps:
- Create a new web in FrontPage at the following location:
http://localhost/framesasp
- On the File menu, point to New, and then click Page. Click the Frames tab, and then select Vertical Split.
- Click New Page for each frame.
- On the File menu, click Save. Name the frames page as default.htm. Name the left frame left.asp and the right frame right.asp.
For additional information about frames, click the article number below
to view the article in the Microsoft Knowledge Base:
196581 FP2000: How to Create and Use a Frames Page
back to the top
Create Content for Left.asp
To create the content for the left pane, create the content on left.asp. To do this, follow these steps:
- Click the left pane.
- On the Insert menu, point to Database, and then click Results.
- In step 1 of the Database Results Wizard, click Use a sample database (Northwind), and then click Next.
- In the Record Source list, click Customers, and then click Next.
- In step 3 of the wizard, click Edit List.
- In the Displayed fields list, CTRL+Click each item in the list except CompanyName and Country, and then click Remove. Click OK, and then click Next.
- Click Next.
- Click to select Display All Records Together, and then click Finish.
- Click to select <<CompanyName>>, and then press CTRL+K to edit the hyperlink.
- Click to select right.asp from the list, and then click Parameters.
- Click Add, and select CustomerID from the Name list. Click OK. Click OK again to return to the Create Hyperlink dialog box.
- Click the Change Target Frame icon (pencil with ellipses), select the right frame, and then click OK.
- Click OK.
back to the top
Create Content for Right.asp
The right.asp page will contain two database results regions. To create the first database results region, follow these steps:
- Click to select the page in the right frame.
- On the Insert menu, point to Database, and then click Results.
- In step 1 of the Database Results Wizard, click to select Use an existing database connection. Click to select Sample in the list, and then click Next.
- Click to select Customers from the Record source list, and then click Next.
- Click More Options.
- Click Criteria, and then click Add. Click to select CustomerID from the Field Name list, and then click OK.
- Click OK again, and then click Next.
- Click to select List - one field per item from the Choose formatting options for the records returned by the query list.
- In the List Options list, click Table. Click Next.
- Click to clear the Add search form check box, and then click Finish.
- Save each page.
To create the second database results region, follow these steps:
- Click to select the page in the right frame.
- On the Insert menu, point to Database, and then click Results.
- Click to select the Using an existing database connection option, and then click Sample from the list. Click Next.
- Click to select Customers from the Record source list. Click Next.
- Click Edit List. CTRL+Click every item in the Displayed fields list, except ContactName and ContactTitle, and then click Remove. Click OK.
- Click More Options.
- Click Criteria. Click Add. Click to select CustomerID from the Field Name list. Click OK.
- Click Add. Click to select ContactName from the Field Name list. Click to select Begins With from the Comparison list. Click OK twice.
- Click Defaults. Click to select the first item in the Name column, and then click Edit. Set the value to 0 (zero), and then click OK. Repeat this step for each item in the list.
- Click OK twice, and then click Next.
- Click to select List - one field per item to select the formatting options.
- Click to select Table in the List Options list. Click Next.
- Verify that the Add Search Form check box is selected. Click Finish.
- To view its properties, double-click the CustomerID text box.
- Copy the text in the Initial Value box. (It should be similar to the following: <%=Request("CustomerID")%>).
- Click OK.
- Right-click anywhere within the form, and then click Form Properties. Click Advanced, and then click Add.
- In the Name field, type CustomerID.
- In the Value field, press CTRL+V to paste the contents that you copied in step 15.
- Click OK three times.
- Select the line that contains CustomerID and the text box, and then press DELETE to delete these items.
- Save the pages by clicking Save on the File menu.
back to the top
Modification Type: | Major | Last Reviewed: | 10/27/2002 |
---|
Keywords: | kbhowto kbHOWTOmaster KB269582 |
---|
|