Did you know that every time you do Response.Redirect, it thrown an exception System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at System.Web.HttpResponse.Redirect(String url) at Default2.imgButton_Click(Object sender, EventArgs e) You just don't see it because your Response.Redirect is not in try/catch block. Try putting your Response.Redirect in try/catch block and outputting your results (caught exception) into a file and you will see the problem. If anyone has an explanation, more than welcome to share. Thanks, -Amelyan
Amelyan wrote: > Did you know that every time you do Response.Redirect, it thrown an > exception > > System.Threading.ThreadAbortException: Thread was being aborted. > at System.Threading.Thread.AbortInternal() > at System.Threading.Thread.Abort(Object stateInfo) > at System.Web.HttpResponse.End() > at System.Web.HttpResponse.Redirect(String url, Boolean endResponse) > at System.Web.HttpResponse.Redirect(String url) > at Default2.imgButton_Click(Object sender, EventArgs e) > > You just don't see it because your Response.Redirect is not in > try/catch block. Try putting your Response.Redirect in try/catch > block and outputting your results (caught exception) into a file and > you will see the problem. > > If anyone has an explanation, more than welcome to share. http://support.microsoft.com/default.aspx?scid=kb;en-us;312629 Cheers, -- http://www.joergjooss.de mailto:news-reply@joergjooss.de