Skip to main content

Recap—Using CSP Tags

Before we move on to the next chapter, let's review what we did to link the TopPicks and ShowTimes pages.

  • For each film on the TopPicks page, we added an anchor ( <a> ) tag that displays the ShowTimes page when the user clicks on the Show Times icon. The URL includes, in addition to the page name, a name / value pair with the object ID of the film. generated description: smallbacktriangle.gif

  • Because we set the encoded attribute of its csp:class tag to 1, any references to the ShowTimes page will use encoded URLs. generated description: smallbacktriangle.gif

  • In the ShowTimes page we pass that object ID, which is obtained via the Request object, to the query we defined for the Cinema.ShowOpens in a new tab class. generated description: smallbacktriangle.gif

  • That query retrieves the show time information for the selected film, which is then displayed. generated description: smallbacktriangle.gif

FeedbackOpens in a new tab