473,812 Members | 2,845 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ErrorPage property of System.Web.UI.P age

Hi,

It is said the ErrorPage property of System.Web.UI.P age defines the target
page where the browser will be redirected when un unhandled exception
occurs. Doesn't seem to work...well it works fine at the application level
(using web.config) but I thought that we could do it at the page level too
?? Maybe I misunderstood something...
Nov 19 '05 #1
2 1105
Jeff:
Make sure you have your customErrors mode="On" in the web.config. Otherwise
everything should work fine.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Jeff Robichaud" <jf*********@gm ail.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Hi,

It is said the ErrorPage property of System.Web.UI.P age defines the target
page where the browser will be redirected when un unhandled exception
occurs. Doesn't seem to work...well it works fine at the application level
(using web.config) but I thought that we could do it at the page level too
?? Maybe I misunderstood something...

Nov 19 '05 #2
Thats' it! Thanks. I had it to "RemoteOnly "...

"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:ur******** *****@TK2MSFTNG P15.phx.gbl...
Jeff:
Make sure you have your customErrors mode="On" in the web.config.
Otherwise
everything should work fine.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Jeff Robichaud" <jf*********@gm ail.com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Hi,

It is said the ErrorPage property of System.Web.UI.P age defines the
target
page where the browser will be redirected when un unhandled exception
occurs. Doesn't seem to work...well it works fine at the application
level
(using web.config) but I thought that we could do it at the page level
too
?? Maybe I misunderstood something...


Nov 19 '05 #3

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

Similar topics

2
1218
by: Daniel | last post by:
Hi, I have just a question: I need when a error ocurrs on my page, the error page that I defined be oponed. Just setting errorPage="ErrorPage1.aspx" in my page will work, rigth? or I'm making a mistake, because I doesn't work and the page crashed showing the message error. I need your support, thanks.
3
2027
by: Michael | last post by:
Hello, I'm using Web Matrix and tried to add ErrorPage like this: <%@ Page Language="C#" Debug="true" ErrorPage="hello.aspx" %> I thought this would trap unhandled exceptions and redirects to hello.aspx; it does not. Help. Thanks.
1
1041
by: Daniel | last post by:
How can I get in my custom ErrorPage the error message from the page that produced the error ?? This is just for displaying the error.
1
1192
by: Lars Netzel | last post by:
Hey! I use a custom error page in my solution, ErrorPage.aspx. Which I have styled so it goes well with the rest of the appliction... it's currently all static... Is there anyway in that page to actually access the error messages and infroamtion given by the IIS? To at least give the user feedback (to forward to the suport or something) on what page it was who gave the error and what Rownumber in that page?
2
1501
by: ad | last post by:
Hi, I use the setting below in Web.config <customErrors mode="On" defaultRedirect="~/ErrorPage/GenericErrorPage.aspx" /> How could we get error statusCode when GenericErrorPage is load?
1
6875
by: Will Gillen | last post by:
I know this has probably been asked before, but I can't seem to find a solid answer in any of the archives. First, before my question, please forgive my limited knowledge of the event lifecycle and page loading/rendering lifecycle.... Ok, now for the question: I have an ASPX page (page.aspx), and I have a UserControl (control.ascx). The UserControl has one textbox on the control, and one button control. I have added a public property...
1
1294
by: banjuu | last post by:
Hi all, i need to add errorpage in every jsp page in my project.can any one provide errorpage tht should display error occurred. need very urgent......plz help me yaar
6
9173
by: =?Utf-8?B?SmF5IFBvbmR5?= | last post by:
I am trying to access a Public property on a Master Page from a Base Page. On the content pages I have the MasterType Directive set up as follows: <%@ MasterType virtualpath="~/Master.master" %> On the Master Page I have a public property exposed: Public Property ErrorMessage() As String Get Return txtError.InnerText End Get
8
1980
Paxxer
by: Paxxer | last post by:
Hi All, <%@ Page Language="C#" MasterPageFile="~/MasterPages/MyMaster.master" errorPage="~/Errors/Error.aspx" Title="This will have an Error" AutoEventWireup="true" CodeFile="NewError.aspx.cs" Inherits="NewError" %>
0
9734
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9607
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10404
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10139
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7677
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5568
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5704
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3881
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.