Figure 1   Packaging Presentation Code

Approach
Description
Visual InterDev
Puts all the presentation-tier code along with the layout details inside Active Server Pages. Productivity is high due to WYSIWYG nature of the page editor. It’s fast and easy to change pages on a production site.
Binary Fanatic
Uses ASP script as little as possible. Puts all presentation-tier code inside one or more COM-based DLLs. Generates all page content and layout details dynamically.
WebClasses
Uses the same approach as binary fanatic, but uses the WebClass framework as a starting point instead of starting from scratch.


Figure 2   Processing a User Request


Sub ProcessRequest()
  Dim req As Request
  Set req = GetObjectContext("Request")
  Select Case req("Command")
    Case "", "GetStartPage"
      GetStartPage
    Case "GetCustomerList"
      GetCustomersList
    Case Else
      '*** unknown command
  End Select
  Set req = Nothing
End Sub

Private Sub GetStartPage()
  ' generate HTML for start page
End Sub

Private Sub GetCustomerList()
  ' create business object
  ' run query to retrieve customer data
  ' generate HTML with formatted data
End Sub