.NETGURU
System.Web.HttpApplication Class
Information   Base Types   Related Resources

Defines the methods, properties, and events common to all application objects within an ASP.NET application. This class is the base class for applications defined by the user in the global.asax file.

  • Namespace: System.Web
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.0.3705
  • Assembly: System.Web.dll

  • System.Object
  • View this type on MSDN
  • View this type on WinFX 247
    Articles (40)Discussions (368)MembersRotorChanges
    Articles

    Page: 12
    A Detailed View of the Global.asax File
    C# Corner
    The global.asax file is the ASP.Net counterpart of the global.asa file used in traditional ASP Applications. This file is the placeholder for code to respond to application level events raised in ASP.Net or by HTTP modules. The global.asax file resides in the root directory of an ASP.NET application.
    A Dot Net Guruer of Context
    MSDN
    ASP introduced several intrinsic objects like Request and Application to help track the context for an HTTP request. ASP.NET takes the next step and bundles these objects, plus several additional context-related objects into an extremely handy intrinsic object called Context. Context is an object of type System.Web.HttpContext. It is exposed as a property of the ASP.NET Page class. It's also available from user controls and your business objects (more on that later).
    Add a header and footer control to all pages using http module
    The Code Project
    Use the http module to automatically add a header and footer control to all ASP.NET pages
    An Introductory Guide to Building and Deploying More Secure Sites with ASP.NET and IIS
    MSDN
    ASP.NET and Microsoft Internet Information Services (IIS) work together to make building secure Web sites a breeze. But to do it right, you have to know how the two interrelate and what options they provide for securing access to a Web site's resources. This article, the first in a two-part series, explains the ABCs of Web security as seen through the eyes of ASP.NET and includes a hands-on tutorial demonstrating Windows authentication and ACL authorizations. A range of security measures and authentication methods are discussed, including basic authentication, digest authentication, and role-based security.
    ASP.NET Session Management Internals
    The Code Project
    This article goes through the internals of ASP.NET session management.
    ASP.NET State Management using C#
    The Code Project
    ASP.NET State Management using C#
    Audio-Video Module for ASP.net Community Starter K
    http://www.paul-abraham.com/
    Audio-Video Module for ASP.net Community Starter K
    BUG: Expired Authentication Cookie Increases QueryString Size in Visual Basic .NET
    http://www.kbalertz.com/
    You may notice that QueryString property values are lost or truncated under the following circumstances: You use Mobile Forms Authentication. -and- The Mobile Forms Authentication cookie expires. -and- You log on back to a Microsoft Mobile Internet...
    BUG: Expired Authentication Cookie Increases QueryString Size in Visual C# .NET
    http://www.kbalertz.com/
    You may notice that QueryString property values are lost or truncated under the following circumstances:
    Bugslayer: Handling Assertions in ASP .NET Web Apps
    MSDN
    Recently I was moving along with my ASP .NET Web site de-sign and was quite pleased to see just how much easier ASP .NET made the whole process. Being a good boy, I went through the design process and was about to start development when I noticed a small problem. A prototype I developed to test a theory would hang when I used the standard Debug.Assert.
    Build Your ASP.NET Pages on a Richer Bedrock
    MSDN
    Build a base class to share functionality across all your ASP.NET 1.1 pages.
    Cascade XSL
    The Code Project
    An engine that transforms XML files on a web server.
    Create a custom IHttpHandler to allow ASP.NET pages to communicate with each other
    ASPToday
    One of the questions that experienced web developers typically ask when learning the ASP.NET framework is this: When I want to transfer control to a new page from the current page, how do I create an instance of the next page and pass it the state of the current request? To accomplish this, the default mechanism provided by the ASP.NET framework is to redirect the browser to the next page using the Page.Navigate() method.
    Creating HttpHandlers and HttpModules
    Bipin Joshi
    Http handlers are special applications that typically handle files with certain extension. For example when you request a file with extension .asp IIS routes it to ASP processor. But what if I want to handle files with my own extensions say .bipin? Http handlers allow us to do just that. Now, you might be thinking what is the use of a new file extension? Consider a case where you want to generate graphics on the fly. In such cases you will write an Http handler that will do your task. Note that Http handlers are typically called for the specific file extensions they are designed for. If you have worked with ISAPI extensions in past you will find this concept very familiar.
    Creating multilingual websites - Part 2
    The Code Project
    Creating multilingual websites - Part 2
    Custom Errors in ASP.NET
    .NET Xtreme
    When a runtime or design-time error occurs in an application, ASP.Net shows a default error page that gives a brief description of the error along with the line number on which the error occurred. A developer would wish to view this default error page, during the testing of the application since the description helps him in rectifying the error. But he would never want a user trying to access his application, to view this error page. The user would be least bothered to know about the error. Instead of showing the default error page, it would be more sensible to show a customized error page that would let the user send notification of the error to the administrator.
    Custom Errors in ASP.NET
    DotNetJunkies
    Structured exception handling is a fundamental part of the CLR and provides .NET programmers a great way of managing errors. In addition to CLR exception system, Amit explains how ASP.NET also provides ways of handling errors.
    Declarative ASP.NET globalization
    The Code Project
    An article on how to implement globalization support for ASP.NET pages through attributes and reflection
    DotNetNuke URL Rewriting HTTP Module
    The Code Project
    Always maps your static links to the appropriate Tab ID
    Exception Reporting with Application Error of Global.asax
    http://tconsult.com/
    The easiest way to catch exceptions and report them is to use the Application_Error Handler of the global.asax file. The Application_Error handler will catch all exceptions in the application by default. The only thing you need to do is deploy it. Your .NET pages do not need any special code added to them to fire it. It will do so by default.
    FIX: When You Call the Response.ClearHeaders Method in a Custom HTTPmodule, Extra Characters Are Appended to the Output
    http://www.kbalertz.com/
    (812686) - When you call the Response.ClearHeaders method in a custom HTTPModule that is registered with PreSendRequestHeaders, extra characters are returned. This problem occurs only on the first request or the first time that you make this call after you...
    Global Exception Handling with ASP.NET
    http://webdeveloper.earthweb.com/
    You can't debug a problem if you don't know that it exists. After you take your web application live, you are no longer the only one who is using it (hopefully), so you need an effective plan to track exceptions when they occur while others are surfing your site. A great way to do this is to implement an exception handler at the application level. This will allow you to consolidate the logging and notification parts of your exception handling in one convenient place. As you'll see from the code examples that follow, your global exception handler can handle both specific exceptions that you trap in your code and generic unhandled exceptions.
    Global Web Application Level Error Reporting
    Master C#
    As a web master of any web site it becomes of primary importance for you to know of any error that occurs in your Web Application. Even though good design practice calls for Error Handling within the application itself, still there could many un-handled errors and exceptions occurring within your web applications spoiling your clients experience.
    How to Add an Application-wide Footer Using the global.asax
    Edward's Web Developer Site
    This code is a demonstration of the global.asax file. At the end of every request (page), it tacks a footer on to output.
    HOW TO: Create an ASP.NET HTTP Module Using Visual C# .NET (Q307996)
    Microsoft Support
    This step-by-step article demonstrates how to use Visual C# .NET to create a simple, custom HTTP module. This article demonstrates how to create, deploy, and configure the module, as well as how to hook up an event for the module in the Global.asax file.
    Ad


    Need Dot Net Interview Questions?
    Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
    .Net Projects
    Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
    Free .net Help
    Commission ExamGuru, Inc. and his team for your next bespoke software project
    FogBUGZ
    The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
    Awesome Tools
    If you don't know about these, you're missing out... IT Certification Questions
    IT Interview Questions
    Free Oracle 10g Training
    MCSE Boortcamp
    Cisco Study Guides
    Cheap Study Guides
    Exact Questions
    Dot Net Interview Questions
    Oracle OCP
    Cheap Travel
    Designer Perfumes - Wholesale Prices
    Free Programming Tutorials
     
    ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
     Copyright © ExamGuru, Inc. 2001-2006
    Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification