% ' Begin buffering the HTML ' Note this MUST happen before the initial tag. Response.Buffer = True %>
HTML code before potential redirect.<% ' Change the following line as appropriate for your script If 1 = 1 Then Response.Clear Response.Redirect "/404/404.asp" End If %> <% ' The following causes the HTML to actually be sent to the client. ' Up to this point, no HTML has actually been downloaded to the client ' browser. Response.End %>