You can use Data View Web parts with existing URL hyperlinks
that pass information for processing. To do this, first update your existing
Web page to use a Data View Web part, and then modify the parameter binding
location to use the URL parameter string that you want to capture.
Insert a Data View
To add a Data View to your Web, page follow these steps:
- Click the position on the page where you want your Data
view to reside.
- On the Data menu, click Insert
Data View.
- Click the data source that you want to use for your
view.
- Click Insert Data View.
Modify the parameter binding location
To modify the Data View to accept data from a URL, follow these
steps:
- Open the page in FrontPage 2003.
- At the bottom of the edit window, click
Code.
- On the Edit menu, click
Find.
- In the Find What box, type
ParameterBinding Name="filterParam", and then click
Find Next.
- Find the Location attribute in this line.
- Replace the current Location attribute value with the following:
"Postback;Connection;QueryString(Param)"
Where Param is the parameter in the URL query string
that you want to pass to the Data View filter.
- At the bottom of the edit window, click
Design.
- Add a filter to the Data View. To do so, follow these steps
- On the Data menu, click
Filter.
- Click Click here to add a new
clause.
- Select the Field Name that you want to filter
on.
- For the Value to compare against,
click [Input Parameter].
- Save the Web page.
To view the results of the filter, add the following parameter
to your URL string that references this page:
Param="
Value" where
Value is the item that you want to compare to.