473,513 Members | 2,263 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Exceptions & Redirect

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.
Nov 17 '05 #1
1 1212
Redirect is still working.
It just redirects the image not the page.
George.
"Tony" <qu*******@resolutionsnet.co.uk> wrote in message
news:bb**************************@posting.google.c om...
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.

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
14595
by: TomT | last post by:
Hi.. I'm redirecting users to another page using: response.redirect("newpage.asp") this works... But I need to add a variable to the page specified.. IE: newpage.asp?id=JobID
1
3064
by: BigMan | last post by:
Does the C++ standard say anything about how arithmetic exceptions (such as integer division by 0) interfere with C++ exceptions? I see that catch clauses DO catch arithmetic exceptions but...
4
3005
by: Luklrc | last post by:
Hi, I'm having to create a querysting with javascript. My problem is that javscript turns the "&" characher into "&amp;" when it gets used as a querystring in the url EG: ...
1
2369
by: Anonieko | last post by:
Understanding and Using Exceptions (this is a really long post...only read it if you (a) don't know what try/catch is OR (b) actually write catch(Exception ex) or catch{ }) The first thing I...
1
1789
by: stevebremermn | last post by:
I'm working on setting up some affiliate links on a site of mine and I haven't been able to get a redirect to work. The original affiliate link looks like this: ...
4
3709
by: David Thielen | last post by:
Hi; We can have an exception thrown in our Application_Start call. And if so, it does then go to Application_Error. However, in this case in Application_Error when we call:...
1
327
by: developereo | last post by:
Hi folks, Can somebody shed some light on this problem? class Interface { protected: Interface() { ...} virtual ~Interface() { ... } public:
5
2910
by: Crumplezone | last post by:
I'm setting up a system in small museum where a number of web sites will be run locally on a PC with a touchscreen running (I assume) Windows & IE7. I need every page to have a timed redirect to...
9
4331
by: RN1 | last post by:
When a server encounters the line Response.Redirect("abcd.asp") in a ASP script, the server tells the browser that it has to be redirected to another page (which is abcd.asp, in this case)....
0
7265
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7171
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7388
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7547
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7541
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5693
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3240
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1607
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.