|
|
 |
RE: FN-FORUM: .NET Thread Abort
date posted 16th May 2006 20:35
Visual studio will let you attach to running processes. And it depends
on how your pages are built - how much control you have over what's
going on and what control syou have on the form that may be doing stuff
in the background.=20
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of Craig
Sent: Tuesday, May 16, 2006 9:28 PM
To: Andy Macnaughton-Jones
Subject: RE: FN-FORUM: .NET Thread Abort
Thanks for the suggestions, I did the following and it still threw the
exception!
How can you check for running processes?
Craig
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
=09
If IsPostBack then
=09
Response.Redirect("somewhere.aspx", True)
=09
Else=20
Do something else
End If
-----Original Message-----
Try a response.redirect("somepage.aspx", true)
The true tells it to terminate processing straight away.
You may also want to check that you've not got some other processes that
have kicked off by another event (page render type stuff) that are still
running.=20
-----Original Message-----
Hi,
Just a quick question that's puzzling me...
In an ASP.NET VB codebehind page if I use a construct in the page_load
sub
like:-
If isPostBack Then
Response.Redirect("somepage.aspx")
Else
Do some other stuff
End If
In some pages is does the redirect fine, in others it throws and
exception and complains about threads aborting.
Does anyone know how to make this work consistently?
TIA,
Craig
--
Freelancers, contractors earn more with Prosperity4 Call 0870 870 4414
or visit www.prosperity4.com and benefit from Inland Revenue approved
expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|