p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

aspdotnet_website_programming thread: Thread is being aborted error when redirecting to BrowseFiles.aspx

Message #1 by mark_greenberg@l... on Mon, 3 Mar 2003 17:12:29
I have incorporated most of the features from Chapter 4 "Maintaining the 
Site" into my own application and they work very well.  I have found one 
problem I can't explain.  The Rename_Click event in BrowseFiles.aspx 
executes Response.Redirect("BrowseFiles.aspx?Folder=" + folderPath) to 
refresh the page.  This statement throws a 
System.Threading.ThreadAbortException: "Thread is being aborted."  This 
occurs in ThePhile app and in my code. The good part (maybe) is that the 
file is renamed and the page refreshes correctly.

Has anyone else experienced this or know why it occurs?


Message #2 by glads2win@y... on Tue, 4 Mar 2003 15:42:59
try specifying the second parameter of the response.redirect to false. 
This basically means that you do not want the end the current response and 
so the page will complete the response and then redirect the page.

Hope this helps

  Return to Index