Processing a Ticket Order
To make sure that this process is clear, let's recap what happens step-by-step.
-
The user clicks on a button to order tickets.
-
A server-side method, AddShow, creates or updates the necessary TicketOrder and TicketItem objects and saves them in the database.
-
The method returns a line of JavaScript code to the browser, causing the browser to request an updated copy of the Order.csp page from the Web server.