All of which is a long way of explaining why we need to add our code to the OnPreHTTP method. Let's do it.
We return to the TicketConfirm class definition and override the default implementation of OnPreHTTP (provided by the %CSP.PageOpens in a new tab class). On the Studio menu bar click [Class] > [Refactor] > [Override] and then click the Methods tab:
We click on “OnPreHTTP”, and press the OK button to override this method...