473,395 Members | 1,937 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,395 software developers and data experts.

Page Load error

The Response.Redirect("default.aspx") produces an error with the
message "Thread was being aborted.".

What does that mean? Can/should I disregard it?

Try
If Not IsPostBack Then
If Session("JournalNr") <"" Then
Call Initialize()
Else
Response.Redirect("default.aspx")
End If
End If
Me.txtSelskabsNavn.Focus()

Catch ex As Exception
MsgBox(Err.Number)
ReportError("Page_Load", ex.Message, Session("JournalNr"))
Exit Sub
End Try

Regards /Snedker
Dec 21 '06 #1
2 1025
This questions has been asked dozens of times, a quick search could have
saved you time.

Directly from the documentation:
Redirect calls End which raises a ThreadAbortException exception upon
completion.

This means that calling this method always raises this exception - so if you
are catching all exceptions, you will catch this one as well. So either trap
only specific types of exceptions, or take the Redirect out of the Try
block.

"Morten Snedker" <morten_spammenot_ATdbconsult.dkwrote in message
news:5m********************************@4ax.com...
The Response.Redirect("default.aspx") produces an error with the
message "Thread was being aborted.".

What does that mean? Can/should I disregard it?

Try
If Not IsPostBack Then
If Session("JournalNr") <"" Then
Call Initialize()
Else
Response.Redirect("default.aspx")
End If
End If
Me.txtSelskabsNavn.Focus()

Catch ex As Exception
MsgBox(Err.Number)
ReportError("Page_Load", ex.Message, Session("JournalNr"))
Exit Sub
End Try

Regards /Snedker

Dec 21 '06 #2
On Thu, 21 Dec 2006 10:15:57 -0500, "Marina Levit [MVP]"
<so*****@nospam.comwrote:
>This questions has been asked dozens of times, a quick search could have
saved you time.
Your're right - that was a lazy shortcut. Thanks for your reply,
though.

Regards /Snedker
Dec 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: user | last post by:
when i first load index.php with arguments ie: "index.php?page=x", the $_SERVERvalue is null. I then get the session id appended to each link. If i refresh the page, I get the $_SERVER I want, but...
4
by: deko | last post by:
I can't move a multi-page report to the last record unless I keep the popup form (that defined it's subreports) open. DoCmd.OpenReport "rptStandard", acViewNormal DoCmd.Close acForm,...
1
by: Franko | last post by:
I get the following error. Please help c:\inetpub\wwwroot\WebApplication1\WebForm2.aspx(6,38): error CS1001: Identifier expected c:\inetpub\wwwroot\WebApplication1\WebForm2.aspx(6,52): error...
0
by: L Scott | last post by:
I've created a page ancestry (framework) for our application so that all pages in our app would have the same look and feel. To do this, I created several user controls (header, footer, menu,...
5
by: Patrick | last post by:
I understand it is built in behaviour that if an ASP.NET's web.config is set to: <customErrors mode="RemoteOnly" /> then I only get a detailed error message on screen when the ASP.NET...
2
by: Sergey Poberezovskiy | last post by:
Hi, I have an application where I need to ensure that users do not use browser navigation buttons. I specifically warn the users, and in every page set the folllowing:...
3
by: Nathan Sokalski | last post by:
I am recieving the following error on the second postback of a page I have written: The state information is invalid for this page and might be corrupted Stack Trace: ...
0
by: mwmorrison93 | last post by:
Hello, I'm at my wit's end regarding the "The state information is invalid for this page and might be corrupted" error and I'm hoping someone can provide some assistance. I working with C#/ASP.NET...
4
by: djlender | last post by:
Hi All! I'm hoping someone can help me with this situation. I am a developer working on a project that has a video voting page. The situation is this: The parent page has an iFrame ( named...
5
by: =?Utf-8?B?TWF0Y29u?= | last post by:
Hello, I have a asp.net 2.0 (vb.net) page, which uses a master page, and there is a javascript function (myfunction) defined in the <headof that master page. Is there a way to run the function...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.