34.4. The Role of the Global.asax File

At this point, an ASP.NET application may seem little more than a set of.aspx files and their respective web controls. While you could build a web application by simply linking a set of related web pages, you will most likely need a way to interact with the web application as a whole. To this end, an ASP.NET application may choose to include an optional Global.asax file via the Web Site Add New Item menu option, as shown in Figure 34-2 (notice you are selecting the Global Application Class icon).

Figure 34.2. The Global.asax file

Simply put, Global.asax is just about as close to a traditional double-clickable ...

Get Pro C# 2010 and the .NET 4 Platform, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.