End If Response. In this trivial example, the code in NewCust.asp and OldCust.asp merely executes a few Response. Writes, but you can execute any ASP code. What's so nice about Server. Execute is that the ASP engine parses the code in the executed page only if the Server.
Execute statement is executed.
One drawback to Server. Execute is that it can't call a particular procedure on the included page. Execute starts running code at the top of the executed page and continues running the code until the executed page ends, at which point it returns to the original page. Another potential drawback with Server. Execute is that any page-scope variables are not shared between the original page and the executed page.