Last post Jul 28, 2011 05:17 PM by pattyk13
Apr 24, 2006 06:03 PM|sorourke|LINK
Apr 24, 2006 09:11 PM|vcsjones|LINK
May 04, 2006 04:18 PM|dexterm|LINK
I'm not exactly sure of the intent of the error message but I got around the error by testing to see if the message contains the "Thread is being aborted" message. Here's an example:
if (ex.Message.StartsWith("Thread") == false)
Response.Redirect("~/Error.aspx?ErrorMsg = " + ex.Message);
May 04, 2006 07:10 PM|ShrinanD|LINK
Jul 07, 2008 12:34 PM|vilindaT|LINK
Hi My friend
just put this code before of the final catch statement (Before Exception catch)
i think this will surview you from this error .
"displayaing web page after complet loading"
.NET 2.0 Login Controls
.Net 2.0 navigation controls
"asp.net 2.5" "visual studio"
"custom control" toolbox dll unc "error loading types"
.net 2.0 c#
Jul 23, 2008 01:29 PM|lalit22|LINK
Sep 05, 2008 02:08 PM|arry.net|LINK
Thanks For the Solution It's Working Gr8 Thanks A lot Buddy
Oct 27, 2008 12:53 PM|suthish nair|LINK
Please check this link reason and solution of the error:
Feb 17, 2009 06:09 PM|Pradeep Kr. Sharma|LINK
I also face the same problem when i used Response.Redirect("url") within the try block. I have tryed many solution and finaly i decided to use response.Redirect("url") out of the try block.
So store the the url in a string variable(redirectUrl) in a try block and and write Response.Redirect out the try and catch block. Like
Its Working in my application.
Pradeep Kr. Sharma
Please remember to click “Mark as Answer” on the post that helps you.
Sep 22, 2009 08:00 AM|mehulkumarwani|LINK
the simple solution for this prblm is
it will work definately, i checked. (Y)
Sep 22, 2009 08:08 AM|Mehul Kumar Wani|LINK
Thanks, it is working fine
Sep 22, 2009 08:42 AM|suthish nair|LINK
The link i provided tells the reason why the error happening, readon for your knowledge..
If your problem solved, Mark as Answer the post that helped.
Feb 09, 2010 06:21 AM|pooja gupta|LINK
you can solve this problem by using Response.Redirect("page name",false);
May 11, 2010 07:00 PM|JGandhi|LINK
I am also getting the same error while using Response.end
Actualy the situation is like this....
I have a Grid on my web page,some link button to filter records in grid and 3 radio buttons which are for exporting data to excel file.
3 radio button contains the value for 'All Records', 'Selected Records' and 'Current page' respectively. All 3 button' Autopostback property is set to true and each has selectoinchanged event.
While selecting one of the radio button I am generating an excel file, in which i am using Response.end().
From here i m getting the same error.
and after this if user clicks any of the link button on the page, the selectionChanged event of radiobutton got called automaticaly and it again creates the file.
I dont know where i wrote the wrong code or this error causes the unwanted problems.
Can anyone help me out in this??
Thanks and regards
May 12, 2010 01:19 PM|dexterm|LINK
As a coding standard, I no longer redirect from methods that I create myself. Only from events. The reason - the error handling object wraps the original error. This results in the, "Unable to evaluate expression" error.
I would suggest that you put try-catch mechanism around the suspect code to determine the error at its source. Moreover, if the error occurs within an event, you can redirect to an error page. If the error occurs within one of your own private methods,
simply throw back to the calling event.
Hope this helps
May 12, 2010 01:36 PM|JGandhi|LINK
Thank you very much Dexter for the reply.
I have tried it by putting try.. catch.. block
i have handle the exception by using System.THreading.ABortException
but by this way it will not execute the block i wrote after Response.End()
and another problem as i have mentioned - the radio button' event continues to fire on any click of link button.
do you have any other way or solution for my second problem??
Thank you and Regards,
Jul 23, 2010 04:14 PM|haplvs|LINK
I found the solution today,just click:http://support.microsoft.com/kb/312629/EN-US/#top
if you know chinese,you can also find the answer from my blog:http://www.cnblogs.com/heaiping/archive/2010/07/23/1784060.html
Sep 02, 2010 06:10 PM|hillscottc|LINK
an Ajax call, there are problems. Ext.js has a workaround with their Ext.Redirect method.
Apr 08, 2011 06:11 AM|ksidhvawala|LINK
I have tried the same code snippet for opening the "*.pdf" file, it gives me error or a message saying - "There was an error opening this document. The file is damaged and could not be repaired.".
The file opens properly independently but not through the given code snippet.
Your reply is awaited...
Jul 28, 2011 05:17 PM|pattyk13|LINK
I have found that putting the Reponse.End() within an AJAX updatepanel causes the error. Taking the Response out of the UpdatePanel worked for me.