Exceptions & Redirect

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

I'm experiencing a small problem, can anyone throw some light on the
situation.

I've implemented Exception handling using the Microsoft Application
block, this works fine. I've included this handling in a page that
retrieves an image from the database.

I have setup a division by zero to replicate an error.

When I access this page directly, everything works fine, the error is
logged and a redirect takes the user to a friendly error page.
i.e. /viewimage.aspx?id=1

But, when I embed this page in another page as part of the Image
control, i.e.
<asp:Image id="imgImage" runat="server" ImageUrl="/viewimage.aspx?id=1
/>
the problem occurs. The error is logged ok, but the Redirect seems to
have no effect.

Any ideas.
 
Redirect is still working.
It just redirects the image not the page.


George.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top