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 800477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:17:50+00:00 2026-05-14T23:17:50+00:00

How can I pass some data from a Global.asax event handler to a custom

  • 0

How can I pass some data from a Global.asax event handler to a custom error page in ASP.NET without using Server.Transfer or some redirect?

  • 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-05-14T23:17:50+00:00Added an answer on May 14, 2026 at 11:17 pm

    Assuming you’re catching unhandled exceptions in global.asax, I don’t think you can. You’re no longer in anyone’s session at that point, so you’ve lost just about all connection with the error, other than the exception itself.

    You might try catching unhandled exceptions in each page, by adding a handler for the Page_Error event. You can centralize some of that by having each page subclass your own application “page base” class instead of System.Web.UI.Page, and make sure that your “page base” class inherits from System.Web.UI.Page. Then have your page base class handle Page_Error. But you won’t be in page-specific code at that point, so you’ll still have to figure out a method for passing data to that custom error page.

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

Sidebar

Related Questions

Can you pass some data from a javax.servlet.Filter to a Jersey endpoint without using
I need to pass some data from a classic ASP application to my ASP.NET
Trying to figure out a way where I can pass some data/fields from a
During a search you can pass some data to search manager by using the
Can I pass some Javascript to a function and then execute that Javascript from
How can I pass back some arguments from a window that is closed? For
Some C functions can modify the string value without that I pass the address
I would like to pass some data structures from java to perl. In perl,
My aim is to retrieve some data from a global array which is defined
I'm trying to pass some data from one activity to a new one but

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.