469,608 Members | 2,351 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,608 developers. It's quick & easy.

Response.Redirect problem

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
Apr 11 '06 #1
3 2039

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

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.

Apr 11 '06 #2
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

Apr 11 '06 #3
Define "not working"

"Marc Hoeijmans" <Ma***********@discussions.microsoft.com> wrote in message
news:EA**********************************@microsof t.com...
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

Apr 11 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Paul | last post: by
6 posts views Thread by Sam | last post: by
2 posts views Thread by news://news.microsoft.com/microsoft.public.de.germ | last post: by
12 posts views Thread by gigi | last post: by
5 posts views Thread by =?Utf-8?B?d2ViZ3V5QGNvbW11bml0eS5ub3NwYW0=?= | last post: by
reply views Thread by guiromero | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.