Application
domain: The process space where ASP.NET worker
process loads the Web application’s assembly.
Namespaces
organizes code and provide protection from conflicting names
(namespace collisions)
Access
modifier for classes and modules
Public
(VB.NET) or public (C#) can be accessed by all members in all
classes and projects.
Friend (VB.NET) or
internal(C#) can be accessed by all members in the current
project
Protected
(VB.NET) or protected(C#) can be accessed in the current
class and in classes derived from this member’s class
Protected
Friend (VB.NET) or protected internal(C#) can be accessed by
all members in the current project and all members in classes
derived from this member’s class
Private
(VB.NET) or private(C#) can be accessed by members of the
current class only
Inheritance:
With this facility, base class provides methods, properties, and
other members to a derived class.
Abstract
classes defines an interface for derived classes.
Abstract classes are declared with the MustInherit (in VB.NET) or
abstract (in C#) keyword. Methods and properties of these classes
are declared as MustOverride (in VB.NET) or as abstract in
C#.
Delegates
are strong types function pointer used to invoke one or more
methods where the actual method invoked is determined at run time.
Interfaces
are similar to abstract classes except interfaces don’t provide
any implementation of class members.
Global.asax:
The Global object is defined in Global.asax that starts
automatically when an application starts. A developer can use
events in global object to initialize application-level state
variables.
Maintaining
state information: Context.Handler, Query strings,
Cookies, View state, Session state, Application
state.
Point
to be considered for state variables: Maintaining
session state affects performance and should be turned off at the
application and page levels when not required.
Application
state variables are available throughout the current
process, but not across processes. If an application is scaled to
run on multiple servers or on multiple processors within a server,
each process has its own application state. The web application’s
boundaries determine the scope of the application
state.
System.Web
and System.Web.UI namespaces define most of the
objects including Application, Page, Request, and Response
objects.