There are 2 overloads for the Response.Redirect, use the second:
1) HttpResponse.Redirect (String) Redirects a client to a new URL and
specifies the new URL.
2) HttpResponse.Redirect (String, Boolean) Redirects a client to a new URL.
Specifies the new URL and whether execution of the current page should
terminate.
http://msdn2.microsoft.com/t9dwyts4.aspx
A quote from the above link to explain why:
"Calling Redirect is equivalent to calling Redirect with the second
parameter set to true.
Redirect calls End which raises a ThreadAbortException exception upon
completion."
http://msdn2.microsoft.com/a8wa7sdt(en-US,VS.80).aspx
--
HTH,
Phillip Williams
http://www.societopia.net http://www.webswapp.com
"Marc Hoeijmans" wrote:
Hello,
I have a problem with the Response.Redirect. The redirect is working for
some users for other useres it is not working. We all use the same browser. I
have coded the Response.Redirect after a try-catch block. In this block data
is inserted in a database with a stored procedure and an email is send to the
users. The useres recieve the email and the information is stored in the
database. The try-block does not generate an exception thus.
Regards,
Marc Hoeijmans