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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:17:46+00:00 2026-05-13T19:17:46+00:00

How can we use global.asax in asp.net? And what is that?

  • 0

How can we use global.asax in asp.net? And what is that?

  • 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-13T19:17:47+00:00Added an answer on May 13, 2026 at 7:17 pm

    MSDN has an outline of the purpose of the global.asax file.

    Effectively, global.asax allows you to write code that runs in response to “system level” events, such as the application starting, a session ending, an application error occuring, without having to try and shoe-horn that code into each and every page of your site.

    You can use it by by choosing Add > New Item > Global Application Class in Visual Studio. Once you’ve added the file, you can add code under any of the events that are listed (and created by default, at least in Visual Studio 2008):

    • Application_Start
    • Application_End
    • Session_Start
    • Session_End
    • Application_BeginRequest
    • Application_AuthenticateRequest
    • Application_Error

    There are other events that you can also hook into, such as “LogRequest”.

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

Sidebar

Related Questions

can I use ASP.NET MVC URL like this witout redirect to it from Global.asax?:
In an ASP.NET (2.0) application I use FormsAuthentication. In the Global.asax / Application_AuthenticateRequest method
How do I make a Logger global so that I can use it in
can you help me with my problem: i have ASP.NET web site that have
I have an ASP.NET application and in the Global.asax ' Application Error Event, I
As I know, I can use global variable transfer the value among the multi
I'm working on an asp.net project that uses an in-house developed custom SessionStateProvider class.
I have written an ASP.NET HttpModule and I have a static helper class that
I have asp.net web site in which user can login and also do logout
Let's say, for the sake of argument, that I have 30 asp.net web applications

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.