This document provides an overview of ASP.NET training covering introduction to the .NET framework, compilation in .NET, ASP.NET features, C# language, working with data, ASP.NET page lifecycle, and website security. Key topics include the Common Language Runtime allowing execution of programs across platforms, ASP.NET enabling server-side scripting in .NET languages, master pages providing a template for consistent page layout, and ADO.NET facilitating database connectivity in ASP.NET applications.
2. INTRODUCTION TO .NET FRAMEWORK
COMPILATION IN .NET
ASP.NET
FEATURE OF ASP.NET
C# LANGUAGE
WORKING WITH DATA
LIFE CYCLE OF ASP.NET
WEBSITE SECURITY
CONTENTS
3. What is .NET FRAMEWORK?
A programming infrastructure created by Microsoft
for building, deploying, and running applications and
services that use .NET technologies, such as
desktop applications and Web services.
The .NET Framework contains three major parts:
1) Common Language Runtime
2) Framework Class Library
3) ASP.NET
5. Common Language Runtime(CLR)
CLR works like a virtual machine in executing all
languages.
Central part of framework
- Executes programs
Compilation process
-Two compilations take place
Programs compiled to Microsoft Intermediate Language
(MSIL)
Defines instructions for CLR
MSIL code translated into machine code
6. CLR
Why two compilations?
Platform independence
.NET Framework can be installed on
different platforms
Execute .NET programs without any
modifications to code
.NET compliant program translated
into platform independent MSIL
Language independence
MSIL form of .NET programs not tied
to particular language
Programs may consist of several
.NET-compliant languages
Old and new components can be
integrated
MSIL translated into platform-specific
code
8. Introduction to ASP.NET
ASP.NET,the platform services that allow to
program Web Applications and Web Services in
any .NET language
ASP.NET is built on the Common Language
Runtime(CLR), allowing programmers to write
ASP.NET code using any supported .NET
language
You can develop your ASP.NET Web-based
applications in any .NET complaint languages such
as Microsoft Visual Basic, Visual C#, and
JScript.NET.
9. What is ASP.NET
ASP.NET is a server side scripting technology that
enables scripts (embedded in web pages) to be
executed by an Internet server
ASP stands for Active Server Pages
ASP.NET file runs inside IIS
IIS (Internet Information Server) is Microsoft's
Internet server
11. MASTER PAGES
Master pages allow us to create a consistent look
and behavior for all the pages (or group of pages) in
our web application
Create Master page by creating a file with the
“.master ” extension
The content which would be changed in Content
pages should be placed in “ContentPlaceHolder”
control
For ex: standard header and footer , menu ,etc.
12. MASTER PAGES
Advantage of master pages
websites easier to
Maintain
Extend
Modify
A master page provides a template for other
pages, with shared layout and functionality
13. C# Language
Object oriented
Language interoperability
Can interact with software components written in different languages or
with old packaged software written in C/C++
Here is a partial list of core C# features that are
found in all versions of the language:
No pointers required.
Automatic memory management through garbage
collection.
Using the partial keyword.
15. Database Connectivity
ADO.NET is the technology that ASP.NET
application use to communicate with a database
ADO.NET is a technology designed for ASP.NET
programs to access data
ADO.NET , Microsoft ‘s latest data access model
16. Database Connectivity
ADO CLASSIC
Provide connectivity in only connected mode
Use record set object
ADO.NET
Provide connectivity in both mode
1. Connection mode
Use data reader object
2. Disconnected mode
Use dataset object