Hi, I am trying to go from one asp page to another with the code
below:
For Each tripToAccept As String In tripsToAccept.Split("/"c)
dataManager.UpdateTripDetail("Accept", CInt(tripToAccept),
Hiduser.Value)
Next
Response.Redirect("TripAcceptReject.aspx")
When I do so, I get the following error: "Thread was being aborted".
What would cause an error like this? 3 983
Use Response.Redirect's second (optional) parameter (a Boolean) to toggle
this standard error on and off.
--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider http://SteveOrr.net
"Doogie" <dn******@dtgnet.comwrote in message
news:11**********************@p77g2000hsh.googlegr oups.com...
Hi, I am trying to go from one asp page to another with the code
below:
For Each tripToAccept As String In tripsToAccept.Split("/"c)
dataManager.UpdateTripDetail("Accept", CInt(tripToAccept),
Hiduser.Value)
Next
Response.Redirect("TripAcceptReject.aspx")
When I do so, I get the following error: "Thread was being aborted".
What would cause an error like this?
Use Response.Redirect's second (optional) parameter (a Boolean) to toggle
this standard error on and off.
This did work, kind of. The error went away, but the page I'm trying
to redirect to never came up??
Could my problem have something to do with the fact that the page that
I'm trying to redirect to appears to be a modal page? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Kerri |
last post by:
Hi,
I have do some Redirects in my applitcaion.
For example, when the use rhas logged in successfully I
redirect them to a different page.
In my Redirect all I was doing was a..
...
|
by: Peter Kirk |
last post by:
Hi there
I have a program written by another company (it's a "web control" which
returns a web-page: can I compare this to a servlet in the Java world?),
which they think is causing problems on...
|
by: VB Programmer |
last post by:
I have a default.aspx page that simply does this (in the "Try" block):
Response.Redirect("MyStartPage.aspx")
I keep getting this exception on this line:
"System.Threading.ThreadAbortException:...
|
by: Tim |
last post by:
Hello,
I've noticed that sometimes putting a Response.Redirect in a Try-Catch will itself throw an exception due to a threading violation. However, in some cases it works, in others it doesn't, and...
|
by: GSK |
last post by:
I am logging the following error when re-directing via Response.Redirect:
"Thread was being aborted
at System.Threading.Thread.AbortInternal() at
System.Threading.Thread.Abort(Object...
|
by: MikeM |
last post by:
We are getting a behavior on a Response.Redirect("SomeUrl", True) that I'm
hoping someone can explain. This all refers to the code snip at the end. By
the way, this is all VB ASP.NET v1.0 code.
...
|
by: Niggy |
last post by:
I get an error - any help appreciated.
System.Threading.ThreadAbortException: Thread was being aborted. at
System.Threading.Thread.AbortInternal() at
System.Threading.Thread.Abort(Object...
|
by: Eric |
last post by:
I have the following situation: I was getting intermittent errors using
Reponse.Redirct("url", true) and was trying to catch the
ThreadAbortException, but it was not staying caught and was showing...
|
by: Doug |
last post by:
In the code below, I am trying to go from one asp page to another:
For Each tripToAccept As String In tripsToAccept.Split("/"c)
dataManager.UpdateTripDetail("Accept", CInt(tripToAccept),...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |