Professional Documents
Culture Documents
NET Components
.NET Components
Main Menu 1 of 57
.NET Components
Objective
At the end of this chapter students will be able to
understand different .NET components of the .NET
Framework
Main Menu 2 of 57
.NET Components
Scope
Introduction
Visual Studio .NET
Shared Integrated Development Environment
Different windows of Visual Studio .NET
Windows Management
Languages
Technology
Main Menu 3 of 57
.NET Components
Introduction
The .NET Framework is language-neutral; virtually
any language can target the .NET Framework. .NET
Framework supports a number of languages,
including C++, Visual Basic .NET, JScript, and C#.
A large number of third-party languages will also be
available for building .NET Framework applications.
These languages include COBOL, Eiffel, Perl,
Python, Smalltalk, and others. This chapter will
discuss the tool, technology and some of the
languages supported by Microsoft’s .NET
Framework.
Main Menu 4 of 57
.NET Components
Tools
The Microsoft .NET Framework Software
Development Kit (SDK) tools are designed to make
application development easier to create, deploy, and
manage applications and components that target the
.NET Framework. There are many tools that come
with the .NET Framework SDK. Visual Studio .NET
is one of the tool that ship with the .NET
Framework.
Main Menu 5 of 57
.NET Components
Main Menu 6 of 57
.NET Components
Main Menu 7 of 57
.NET Components
Main Menu 8 of 57
.NET Components
Main Menu 9 of 57
.NET Components
Main Menu 10 of 57
.NET Components
Main Menu 11 of 57
.NET Components
Main Menu 13 of 57
.NET Components
Main Menu 14 of 57
.NET Components
Main Menu 15 of 57
.NET Components
Class Library Template for Creating classes that will be used in other application
Control Library Template for creating controls that will be used on Windows Forms.
ASP.NET Web Application Template for creating a Web site with static or dynamic HTML pages as
the user interface.
ASP.NET Web Services Template for creating Web Services that can be called through XML
SOAP interfaces.
Web Control Library Template for creating user’s own controls that will be called from Web
applications.
Windows Services Template for creating user’s own service that runs in the Windows
environment.
Empty Project/Empty Web project Creates an empty project that a developer can use to build a project. No
templates supplied.
Main Menu 16 of 57
.NET Components
Solution Explorer
Solution Explorer displays an organized list of
projects as well as the files and directories that are
part of the current solution. The solution can consist
of projects in different languages.
Main Menu 17 of 57
.NET Components
Command Window
The Command Window is a synergy of a command
line and Visual Basic’s immediate window.
Command Window can be activated by using View -
> Other Window -> Command Window. Command
Window has two modes – Command Mode and
Immediate Mode. The Command Mode is used to
execute command directly in the Visual Studio .NET
environment bypassing the other commands which
are executed through the menu option.
Main Menu 18 of 57
.NET Components
Command Window
When the Command Window is in Command Mode
its title bar displays the text “Command Window”
and the greater than symbol (>) appears in the
window as a prompt for new lines whereas if the
Command window is in Immediate Mode its title bar
displays the text “Command Window – Immediate”.
The Immediate Mode is used to execute code
statements, set or assign values to the variables,
evaluate expressions and many more.
Main Menu 19 of 57
.NET Components
Command Window
To switch into the Immediate Mode from Command
mode enter “immed” into the Command Window
without the greater than sign (>), whereas to switch
into the Command Mode from Immediate Mode
enter “>cmd” into the command window.
Main Menu 20 of 57
.NET Components
Server Explorer
As the development has become more server-centric,
developers have a greater need to discover and
manipulate services on the net. The Server Explorer,
a new feature of Visual Studio.NET makes it easier.
Through this a wide variety of server resources that
are available for use can be seen as shown below.
Even services can be restarted and stopped on the
server using Server Explorer. This window can be
selected from View | Server Explorer
Main Menu 21 of 57
.NET Components
Dynamic Help
This option can be selected from Help | Dynamic
Help
Dynamic Help provides appropriate help on a single
click. It provides pointers to relevant information
specific to the current development task.
Main Menu 22 of 57
.NET Components
Enhanced IntelliSense
Web Developers can get immediate help on tags,
properties and even values within the code editor
using the IntelliSense technology. Developer can
gain benefits of automatic statement completion and
syntax notifications when they write their code.
Main Menu 23 of 57
.NET Components
Window Management
Various information windows in Visual Studio.NET
are dockable. When developers edit multiple
documents in the editor or designer, all the
documents appear as tabs on the top. Back and
Forward button allows developers to navigate
through the open windows in the environment.
Visual Studio.NET provides support for multiple
screens so that more windows can be opened at the
same time without sacrificing screen space.
Main Menu 24 of 57
.NET Components
Designer
Designers can be selected from Tools | Options.
HTML Designer
HTML Designer is a graphical way to develop
Main Menu 25 of 57
.NET Components
Designer
Component Designer
Server side components can be built quickly and
graphically using the Component Designer of Visual
Studio.NET. It applies the concepts of Rapid
Application Development form-based programming
to build middle-tier objects - a visual way for
building non-visual objects.
Instead of writing lots of server-based code,
developers can drag and drop server components to
the design surface that will run on the server.
Main Menu 26 of 57
.NET Components
Designer
XML Designer
The XML Designer provides tools for working with
Other Features
Web Hosting:
Developers wanting to deploy web applications and
XML web services by using Visual Studio.NET will
be at ease by the inclusion of new Web Hosting tab
on the Start page in Visual Studio.NET. The Web
Hosting tab gives developers access to a list of
ASP.NET Web hosters to provide free Web space
and are integrated with Visual Studio.NET to
facilitate the deployment of completed applications
through a wizard.
Main Menu 28 of 57
.NET Components
Other Features
Third-party downloads:
Hundreds of software component vendors, training
companies and other partners have already adopted
and created .NET based software that is available for
developers to extend their solutions with Visual
Studio.NET. These third party resources can easily
be found on the What’s New tab on the Start page in
Visual Studio.NET.
Main Menu 29 of 57
.NET Components
Other Features
It provides a place for developers to learn about the
new features in Visual Studio.NET as well as a place
to learn about the third party vendors providing
developer tools, languages, controls that work with
and integrate with Visual Studio.NET.
Main Menu 30 of 57
.NET Components
Other Features
Efficient Message Delivery:
Microsoft Message Queuing (MSMQ) makes it easy
for developers to communicate with the application
programs quickly, reliably by sending and receiving
messages.
Main Menu 31 of 57
.NET Components
Main Menu 32 of 57
.NET Components
Languages
This section discusses the Visual Studio .NET
compliant language. These language include Visual
C#, Visual Studio .NE and many more.
Main Menu 33 of 57
.NET Components
Visual C#
Visual C# is a new language which runs inside the
.NET Framework. It is a simple, modern, object
oriented and type safe programming language
derived from C and C++. It is firmly planted in the C
and C++ family tree of languages and has a heritage
of Visual C++ that is expected to enable many of C
and C++ developers to use their existing skills to
rapidly develop sophisticated XML based
application. The key features are:
Enhanced productivity, Complete access to the
underlying platform and Low-level code control
Main Menu 34 of 57
.NET Components
Main Menu 36 of 57
.NET Components
Technology
Visual Studio also supports some technology which
are given below. With the help of Visual Studio
.NET a developer can create a robust application,
windows services or web services.
Main Menu 38 of 57
.NET Components
Win Forms
Because of .NET Framework, it becomes easy to
develop web-based applications, however not all
applications will run on the web. So this is where
Windows Forms comes in. Windows Form or
WinForms is a forms package that .NET uses to
build Windows based applications. WinForms are
set of classes and incorporate .NET platform’s
technologies, such as object-oriented design,
security, managed execution and support for
building data-aware applications based on
ADO.NET.
Main Menu 39 of 57
.NET Components
Win Forms
All the controls in the WinForms will have certain
properties and events attached to them that a
developer can work upon. There are certain
enhancements made in the properties and events
from previous Forms.
Main Menu 40 of 57
.NET Components
Web Forms
Now days, applications that deal with the World
Wide Web are more widely created. Therefore
programmers have moved to Active Server Pages
(ASP) technology as a means to develop web
applications. Web forms are a part of the ASP.NET
technology. They allow the programmer to develop
web pages that combine visual HTML forms with
server side code.
Main Menu 41 of 57
.NET Components
Web Forms
Visual Studio .NET takes full advantage of Web
Forms, one of the key new technologies in the .NET
Framework. With Web Forms, Visual Studio .NET
addresses the difference between the techniques
used to build desktop applications and those used to
create Web applications. With Visual Studio .NET
and Web Forms, developers can rapidly develop
cross-platform, cross-browser programmable Web
applications using the very same techniques
previously utilized to build form-based desktop
applications.
Main Menu 42 of 57
.NET Components
Web Forms
A standard Web Forms page consists of a Web Form
"markup" file containing the visual, XML-based
representation of the page (HTML, WML, XML,
etc.), and a source file with event handling code. The
source is compiled into executable code providing
fast runtime performance. Both files reside and
execute on the server where they generate a Web
page that is sent to the client.
Main Menu 43 of 57
.NET Components
Web Forms
The page can be generated as pure HTML, which
means it can be viewed on any platform, with any
browser. Or it can target the special capabilities of a
specific browser. It can even be targeted to mobile
devices that support WML and WAP, using the
Adaptive UI Controls, all while using the same
business logic on the server.
Main Menu 44 of 57
.NET Components
ADO.NET
ADO.NET is designed with the goal of better
serving the data access needs of web applications.
ADO.NET is designed to be data-centric, non-
database-centric, focused on handling disconnected
data sets, and tightly integrated with XML. It
enables better data sharing capabilities between
components and tiers in an application.
Main Menu 45 of 57
.NET Components
ADO.NET
The .NET Data Provider object group contains
objects for accessing SQL Server and OLEDB data
sources and includes Connection and Command
objects that are similar to their ADO counterparts. A
.NET data provider is used for connecting to a
database, executing commands, and retrieving
results. Those results are either processed directly, or
placed in an ADO.NET DataSet in order to be
exposed to the user.
Main Menu 46 of 57
.NET Components
Web Services
Web Services are the component that runs on the
server and typically include business logic.
Main Menu 47 of 57
.NET Components
Main Menu 48 of 57
.NET Components
Main Menu 49 of 57
.NET Components
Main Menu 50 of 57
.NET Components
Main Menu 51 of 57
.NET Components
Main Menu 52 of 57
.NET Components
Summary
Key points covered in this chapter are:
Visual Studio.NET (VS.NET) is a powerful
Summary
C# is a simple, modern, object oriented and type safe
programming language derived from C and C++.
ASP.NET's brings a language-independent way of
creating components and dynamic web applications
that can produce output on any platform or device.
ADO.NET works with data in a disconnected way
under .NET Framework’s stateless distributed web
model.
ADO.NET is specifically designed to operate in 3-
tier environment.
Main Menu 54 of 57
.NET Components
Self Assessment
Fill in the blanks:
Solution Explorer displays an organized list of projects
__________________
Command and
Command Window has two modes – _____________
Immediate mode
__________________
The TaskList
_____________ can show all current syntax errors in the
current code
The XMLDesigner
_____________ provides tools for working with XML
and XSD files.
EventLogs supply the user interface for viewing the logs
____________
and a programming interface for examining the logs.
Main Menu 55 of 57
.NET Components
Self Assessment
State True or False:
The standard VB form has been replaced by Web
Form. True
The Command Mode is used to execute command
Main Menu 56 of 57
.NET Components
Self Assessment
State True or False:
Microsoft Message Queuing (MSMQ) makes it easy
Main Menu 57 of 57