Objectives: Lesson 1A / Slide 1 of 44 ©niit
Objectives: Lesson 1A / Slide 1 of 44 ©niit
NET
Objectives
In this lesson, you will learn to:
• Identify the types of application architectures
• Identify the components of the .NET Framework
• List the advantages of the .NET Framework
• Identify the components of the Visual Studio .NET Integrated Development
Environment (IDE)
• List the features of Visual Basic .NET
Single-Tier Architecture
• In single-tier architecture, a single executable file handles all functions relating
to the user, business, and data service layers.
• Single-tier applications are also called monolithic applications.
Two-Tier Architecture
• The two-tier architecture divides an application into the following two
components:
• Client: Implements the user interface
• Server: Stores data
• In the two-tier architecture, the business services layer may be implemented
in one of the following ways:
• By using fat client
• By using fat server
• By dividing the business services between the user services and the data
services
Three-Tier Architecture
• In three-tier architecture, all the three service layers reside separately, either
on the same machine or on different machines.
• The user interface interacts with the business logic.
• The business logic validates the data sent by the interfaces and forwards it to
the database if it conforms to the requirements.
• The front-end only interacts with business logic, which, in turn, interacts with
the database.
N-Tier Architecture
• An n-tier application architecture is not restricted to a specific number of
layers.
• It has multiple servers handling business services.
• The advantages of n-tier architecture are:
• Extensibility
• Resilience to change
• Maintainability
• Scalability
• These applications serve organization-specific requirements. Therefore, most
modern enterprise applications are based on the n-tier application architecture.
.Net Initiative
• The .NET initiative offers a complete suite for developing and deploying
applications. This suite consists of
• .NET products:
• Microsoft has introduced Visual Studio .NET IDE, which is a tool for
developing .NET applications.
• NET programming languages: Visual Basic, Visual C#, and Visual C++.
• All .NET products use eXtensible Markup Language (XML) for describing
and exchanging data between applications.
• .NET services:
• Web services: A Web service is an application or business logic that is
accessible through standard Internet protocols such as HTTP and SOAP.
• The .NET Framework:
• It is a foundation for developing, designing and deploying applications.
• It exists as a layer between .NET applications and the underlying
operating system.
Native Code
Toolbox
• The Toolbox displays the tabs Data, Component, Windows Forms,
Clipboard Ring, and General.
• At a time, the items from only a single tab are visible.
Tab
Docking
• This feature allows you to place a window against any of the edges of the
parent window.
• You can make a window dockable by right-clicking the title bar of the window
and checking the Dockable option from the shortcut menu.
The following figure depicts the Toolbox docked against the left edge of the main
window:
Tabbed navigation
• In order to effectively organize the limited space available on the screen,
Visual Studio .NET overlaps various open windows and provides tabs for
navigating from one window to another.
• This feature also provides ease in navigation.
Consider the following figure:
In the figure, the Properties window has overlapped the Dynamic Help window.
©NIIT Introduction to VB .NET Lesson 1A / Slide 36 of 44
Introducing .NET
Auto hide
• This feature automatically hides a window when it is not in use, thereby
clearing the area occupied by the window.
• To enable this feature, you need to right-click the title bar of the window and
check the Auto Hide option in the shortcut menu.
The following figure depicts the Toolbox window after the Auto Hide feature is
enabled:
When you want to use the Toolbox, you can view it by simply pointing to it.
©NIIT Introduction to VB .NET Lesson 1A / Slide 37 of 44
Introducing .NET
Summary
In this lesson, you learned that:
• Applications may vary from single-tier desktop applications (applications that
follow the single-tier architecture) to multi-tier applications (applications that
follow the two-, three-, or n-tier architecture).
• In the case of single-tier architecture, a single executable file handles all
functions relating to the user, business, and data service layers.
• In the case of two-tier architecture, the user and data services are located
separately, either on the same machine or on separate machines.
• In the case of three-tier architecture, all the three service layers reside
separately, either on the same machine or on different machines.
• An n-tier application uses business objects for handling business rules and
data access. It has multiple servers handling business services.
• Most modern enterprise applications are based on the n-tier application
architecture.
• In the current scenario, although applications serve organization-specific
requirements, they are not interoperable.
Summary (Contd.)
• Microsoft has introduced the .NET initiative with the intention of bridging the
gap in interoperability between applications.
• The .NET initiative aims at integrating various programming languages and
services.
• The .NET initiative offers a complete suite of products and services for
developing and deploying applications. In addition, it also provides the .NET
Framework, which encapsulates the basic functionality, such as garbage
collection, debugging, and security services, that was earlier built into
various programming languages.
• The Common Language Runtime (CLR) or the runtime provides functionality
such as exception handling, security, debugging and versioning support to
any language that targets it.
• Some of the features provided by the CLR are as follows:
• Automatic memory management
• Standard type system
• Language Interoperability
• Platform independence
©NIIT Introduction to VB .NET Lesson 1A / Slide 40 of 44
Introducing .NET
Summary (Contd.)
• Security management
• Type safety
• The .NET Class Framework consists of a class library that works with any
.NET language, such as Visual Basic .NET and C#.
• The .NET Framework class library is built on the object-oriented nature of the
runtime. It provides classes that can be used in managed code to accomplish
a range of common programming tasks, such as string management, data
collection, database connectivity, and file access.
• The .NET Framework class library can be used in a consistent manner across
multiple languages and platforms.
• The .NET Framework class library consists of namespaces that are contained
within assemblies.
• A namespace helps you to create logical groups of related classes and
interfaces that can be used by any language targeting the .NET Framework.
• An assembly is a single deployable unit that contains all the information
about the implementation of classes, structures, and interfaces.
Summary (Contd.)
• An assembly stores all the information about itself. This information is called
metadata and includes the name and version number of the assembly,
security information, information about the dependencies, and a list of the
files that constitute an assembly.
• The user interfaces in .NET Framework comprise Windows Forms, Web Forms
and console applications.
• Windows Forms, Web Forms and Console applications pertain to the
presentation layer of an application.
• Windows Forms are used in Windows-based applications for providing an
interactive user interface.
• Web Forms are used in Web applications for accepting user input and
displaying data.
• Console applications can be executed from the command line.
• The Visual Studio .NET Integrated Development Environment (IDE) provides
you with a common interface for developing Windows and Web applications.
• The IDE provides you with a centralized location for designing the user
interface for the application, writing code, and compiling and debugging the
application.
©NIIT Introduction to VB .NET Lesson 1A / Slide 42 of 44
Introducing .NET
Summary (Contd.)
• To organize various items of an application efficiently, Visual Studio .NET has
provided two types of containers: projects and solutions.
• A project typically contains items that are interrelated. It allows you to
manage, build, and debug the items that make up an application.
• A solution usually acts as a container for one or more projects. It allows you
to work on multiple projects within the same instance of Visual Studio .NET
IDE. A solution also allows you to specify the settings and options that apply
to multiple projects.
• Some of the components of the Visual Studio .NET IDE are as follows:
• The Windows Forms Designer
• The Solution Explorer window
• The Properties window
• The Toolbox
• The Server Explorer window
• The Output window
• The Dynamic Help window
©NIIT Introduction to VB .NET Lesson 1A / Slide 43 of 44
Introducing .NET
Summary (Contd.)
• Code and Text Editor window
• In addition to various windows, the Visual Studio .NET IDE also provides
three navigational features. These are:
• Docking
• Tabbed navigation
• Auto hide
• Visual Basic .NET is one of the languages that are directed towards meeting
the objectives of the .NET initiative for creating distributed applications.
• Some of the key features introduced in Visual Basic .NET are as follows:
• Inheritance
• Constructors and destructors
• Overloading
• Overriding
• Structured exception handling
• Multithreading