You can if you set Response.Redirect = True at the top of the page after Option Explicit (if on IIS 4.0). If on IIS 5.0 buffering is set to true by default. Dave <% David Mitchell Web/Software Developer david at sofTV.net sofTV.net www.sofTV.net 613.729.6400 x268 %> -----Original Message----- From: Means, Eric D [mailto:eric.d.means at boeing.com] Sent: Tuesday, April 09, 2002 12:53 PM To: 'thelist at lists.evolt.org' Subject: RE: [thelist] Can I do this in ASP? > <form action=<%= Request.ServerVariables("SCRIPT_NAME") %>?mode=submit > method="post"> > ...form stuff > <input type="submit"> > </form> > > <% > > If blnSubmit = True Then > ' ok to enter to DB > Response.Redirect("Error.asp") > Else > Response.Write(Err.Number & " " & Err.Description) > End If > > %> You cannot do a Response.Redirect if you've written anything to the browser. The reason for this is that the Response.Redirect is managed by an HTTP header sent to the browser, and you all of the headers have to be sent first, before any actual HTML can be. -- For unsubscribe and other options, including the Tip Harvester and archive of thelist go to: http://lists.evolt.org Workers of the Web, evolt !