Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

RE: FN-FORUM: .NET Thread Abort

date posted 16th May 2006 20:52

I'd got out of the habit of using trace but looking at it now, it seems that
the path_translated server variable is set at the page that it should have
redirected to before it shot off to the error page (my exception handling
routine). So the question is of course, is the path_translated server
variable set as it is because the redirect worked and there's a fault on the
target page, OR the redirect didn't work and that's why it's thrown the
exception?

Any ideas?

Cheers,

Craig


-----Original Message-----

Also, can you get any more information from the Trace? That's usually a
good step before going into a debugger.

-ben

Ben Moxon wrote:
>
> Is there anything happening before your postback check?
>
> -ben
>
> Craig wrote:
>> 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
>>
>>
>> If IsPostBack then
>>
>> Response.Redirect("somewhere.aspx", True)
>>
>> Else 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.
>> -----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




Messages by Day
May 31st 2006
May 30th 2006
May 29th 2006
May 28th 2006
May 27th 2006
May 26th 2006
May 25th 2006
May 24th 2006
May 23rd 2006
May 22nd 2006
May 21st 2006
May 20th 2006
May 19th 2006
May 18th 2006
May 17th 2006
May 16th 2006
May 15th 2006
May 14th 2006
May 13th 2006
May 12th 2006
May 11th 2006
May 10th 2006
May 9th 2006
May 8th 2006
May 7th 2006
May 6th 2006
May 5th 2006
May 4th 2006
May 3rd 2006
May 2nd 2006
May 1st 2006


Messages by Month
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000