Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8558023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:42:43+00:00 2026-06-11T15:42:43+00:00

I have defined in my web.config a default error page: <customErrors mode=On defaultRedirect=Erro_Padrao.aspx> </customErrors>

  • 0

I have defined in my web.config a default error page:

<customErrors mode="On" defaultRedirect="Erro_Padrao.aspx">
</customErrors>

Now, I’m forcing an error in one of my pages to test the error page:

Try
    Dim var1 As Integer = 1
    Dim var2 As Integer = 0
    Dim result As Integer = var1 / var2

Catch ex As Exception
    Throw ex
End Try

The error occurs but nothing happens.

Anyone?

Thank you.

Edit:

I am trying this inside a method that is called by a DevExpress’ ASPxGridView component. The exception message is not shown in the default .NET yellow error page, but this grid somehow handles the exception and “blocks” the redirection(yeah, the error message is in portuguese):

enter image description here

If I try to do this in the page_load event, for example, the redirection for the default error page works fine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:42:44+00:00Added an answer on June 11, 2026 at 3:42 pm

    Found an article on DevExpress’ ASPxGridView pointing out, that any unhandled exception within an GridView will be catched automatically and the CustomErrorEvent will be raised. See only documentation of DevExpress.

    The CustomErrorText event occurs when any exception is raised within
    the ASPxGridView, and allows you to change the error text displayed by
    default. This can be useful, if you want to localize error messages.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my ASP.NET web application, I have defined custom error pages in my web.config
In my web config I have 2 membership providers defined, one for sql, one
I have this variable defined in my web.config file : <appSettings> <add key =version
I have a web page with swf file defined this way <object width=600 height=400
I have a web service, defined(WSDL) and implemented in PHP. This one is relatively
I have a connection string defined in my web.config like: <connectionStrings> <add name=LibraryConnectionString connectionString=Server=.\SQLEXPRESS3;Database=Library;Integrated
I have the following defined in my web.config ( <rewriteMaps configSource=Rewrites.config /> I have
In my asp.net web site I have custom error pages defined as following in
I have defined small MXML component which calls web service which returns random number
In my web.config I have configured a SiteMapProvider with securityTrimmingEnabled=true and on my main

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.