The entry form processing code should be found in the Process routine of the same ASP page. If processing fails, I merely need to call the Paint routine, which repaints the entry form and any error message I choose to display. Route is the first routine called after the page is parsed and executed by the ASP engine. A typical page transaction might look like Figure 11 . Request from browser.
Paint retrieves any data and builds return HTML page.
Paint stub ends and server replies with HTML response. Browser submits HTTP POST request. Route sub detects specific POST variable and passes to Process stub. Redirects on success. B01.asp contains exact logic and replies with B01-painted HTML page.