Top "Global-asax" questions

A special file in the ASP.

Multiple HttpPost method in Web API controller

I am starting to use MVC4 Web API project, I have controller with multiple HttpPost methods. The Controller looks like …

c# asp.net-web-api global-asax asp.net-web-api-routing
"Could not load type [Namespace].Global" causing me grief

In my .Net 2.0 Asp.net WebForms app, I have my Global.asax containing the following code: <%@ Application CodeBehind="Global.…

c# asp.net webforms namespaces global-asax
Where is the Global.asax.cs file?

I am using VS 2008. I have created a new Asp.net web site project from File->New->Website-&…

c# asp.net .net visual-studio-2008 global-asax
How to handle session end in global.asax?

I'm working in chat application, I used HashTable for containing User and Operator as a Key & Object of ChatRoom …

c# asp.net global-asax
Parser Error Message: Could not load type 'sometype'

I am experiencing an error that I am unable to resolve for some time now. I was wondering if someone …

c# asp.net global-asax
how do you wire up Application_BeginRequest() in asp.net-mvc

I see in global.asax.cs from an ASP.NET MVC project protected void Application_BeginRequest() { } but when I try …

c# asp.net-mvc global-asax
Difference between Application_Start and Application_OnStart

I'm in the process of adding ASP.NET MVC code to a preexisting ASP.NET Webforms project. The various tutorials …

asp.net asp.net-mvc global-asax
Application_End global.asax

Can anybody tell me when Application_End is triggered in a lifecycle of an application? When all sessions are ended, …

asp.net iis global-asax lifecycle application-end
How to create Global variables, ASP.NET, global asax

I have some data layer classes that are to be used very frequently almost on the whole site. I was …

c# .net asp.net global-asax
"HttpContext.Current.Session" vs Global.asax "this.Session"

Recently, while working on some code for an ASP.NET project at work. We needed a tracking util to take …

asp.net session session-state global-asax