Response.Redirect problem

G

Guest

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
 
K

KBuser

Marc said:
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


If you're expecting any sort of response that might be helpful, you're
going to need to include a bit more information than that.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,127
Latest member
CyberDefense
Top