Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

Displaying Search Results

From the user's perspective, the SearchResults page is just like the TopPicks page, except that the heading text is different and the list of films is different.

To make the latter change, we are going to use a different query.

—SearchResults.csp—
SearchResults.csp
<html> <body>
<font color="#0000FF" size="+2"><b>Search Results</b></font>
<table border=0>
<!--Query goes here-->
<csp:while condition="FilmList.Next()">
    <tr>
    <td>
    <b>#(FilmList.Get("Title"))#</b><br>
    #(FilmList.Get("Description"))#<br>
    <b>Genre</b> #(FilmList.Get("CategoryName"))#
    <b>Length</b> #(FilmList.Get("Length"))#
    <b>Rating</b> #(FilmList.Get("Rating"))#<br>
    <br>
    </td>
    <td>
    <a href='ShowTimes.csp?FilmID=#(FilmList.Get("ID"))#'>
        <img src="ShowTimes.gif" width="130" height="39" border="0">
    </a>
    </td>
    </tr>
</csp:while>
</table>
</body> </html>
FeedbackOpens in a new tab