I was always told to stick Response.End after it (never told why mind).....?
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
"Mike" <anonymous@discussions.microsoft.com> wrote in message
news:edrnWGZTEHA.3872@TK2MSFTNGP10.phx.gbl...[color=blue]
> in your first code snippet the response.write will never execute because[/color]
the[color=blue]
> page is redirected. it will always work like that. As for the second[/color]
snippet[color=blue]
> if you have response.end or not after a redirect doesn't matter. The
> redirect will still execute
>
> "JC" <nospam@here.com> wrote in message
> news:u8lHA7YTEHA.320@TK2MSFTNGP10.phx.gbl...[color=green]
> > Hi,
> >
> > I have a simple question regarding the Response.Redirect method. Does[/color][/color]
the[color=blue][color=green]
> > server stop processing the ASP code as soon as it encounters the[/color][/color]
Redirect[color=blue][color=green]
> > command? Or does it ever continue to process the page?
> >
> > Basically, with the following code:
> >
> > [....]
> > Response.Redirect("../newpage.asp")
> > Response.Write "This will crash: " & 1/0
> >
> > It seems that the server sends the redirection header to the client as[/color]
> soon[color=green]
> > as it hits the .Redirect line, and stops processing that page. I do not
> > receive a divide by zero error.
> >
> > Is this always the expected behavior?
> >
> > Also, someone mentioned in a previous thread that the correct syntax to[/color]
> use[color=green]
> > is
> >
> > Response.Redirect "http://someurl.com"
> > Response.End
> >
> > What would happen if someone omitted to send a Response.End command?
> >
> > Thanks in advance.
> >
> > JC
> >
> >[/color]
>
>[/color]