473,406 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 2218

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Paul | last post by:
I'm not getting the results I want when I use Response.Redirct in a ASP page. I enter this line of code in a asp page from domain1.com. Response.Redirect...
3
by: Gary | last post by:
I am having a strange problem that I cannot solve. I have an asp page that I use for a user to login and gain access to other pages. When the user logs in I set a couple of session variables like...
4
by: TomT | last post by:
Hi.. I'm redirecting users to another page using: response.redirect("newpage.asp") this works... But I need to add a variable to the page specified.. IE: newpage.asp?id=JobID
6
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx...
2
by: news://news.microsoft.com/microsoft.public.de.germ | last post by:
Hallo! Ich habe ein Frameset mit 3 Frames. Im 1. Frame wird eine ASPX-Seite geöffnet. In dieser werden einige Steuerelemente angezeigt. Nun soll bei bestimmten Benutzeraktivitäten eine andere...
1
by: Sean Wolfe | last post by:
I have this wierd bizarrre problem that I'm experienceing with the Response.Redirect() method. I have a site where the users are on a particular page in SSL. When they post the data back, and...
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
4
by: mike.biang | last post by:
I have an ASP page that is using an XMLHTTP object to request various pages from my server. I keep a single session throughout the XMLHTTP requests by bassing the ASPSESSIONID cookie through the...
12
by: gigi | last post by:
How to send more than one value using response redirect? For example i can send one like this response.Redirect "pregled.asp?ime=" & strUserName but how to send two or more values? I tried...
5
by: =?Utf-8?B?d2ViZ3V5QGNvbW11bml0eS5ub3NwYW0=?= | last post by:
We have been running into some problems where using Response.Redirect causes the page to hang and it never actually redirects. Here's the scenario: User opens the page, selects an item from the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.