ASP.
net
CHAPTER 1: INTRODUCTION
COURSE OUTLINE
PART ONE:
CHAPTER ONE: INRODUCTION
CHAPTER TWO: GETTING STARTED
CHAPTER THREE: CREATING ASP.NET WEB PAGES
CHAPTER FOUR: PROGRAMING IN ASP.NET
CHAPTER FIVE: VALIDATION IN ASP.NET
CHAPTER SIX: CASCADING STYLE SHEETS
CHAPTER SEVEN: PRESENTING DYNAMIC DATA
CHAPTER EIGHT: DATA ENTRY SYSTEM
PART TWO:
CHAPTER NINE: SECURITY IN ASP.NET
CHAPTER TEN: ADDING REPORT
CHAPTER ELEVEN: DEPOLYING YOUR WEB
INTRO:
.NET:
part of the company’s(Microsoft) new
strategy for “Delivering software as a
service”.
CONT
The key features that .NET offers
include:
1. .NET Framework
2. .NET Products
3. .NET My Services
.NET FRAMEWORK:
It is an application software platform
from Microsoft introduced in 2002.
Purpose: Similar to JEE platform and
like Java’s JVM runtime engine.
Byte code(Java) = CLR(.net)
Application: .net run time engine
must be installed in the computer in
order to run .net application.
.NET PROGRAMMING
LANGUAGES:
Similar to Java because it uses an
intermediary byte code language that
can be executed on any hardware
platform that has a runtime engine.
Unlike Java it support multiple
programming languages like C# and
vb.net
HOW .NET WORKS:
.net compiler generates a Microsoft
Intermediate Language (MSIL) byte
code, which is executed by the .net
Common Language Runtime Engine
(CLR).
.NET FRAMEWORK VERSIONS:
.NET framework 1.0
.NET framework 2.0 Added
enhancements
.NET framework 3.0 Windows
Programming Interface
.NET framework 3.5 added
enhancements
.NET framework 4 Parallel Processing
Last version 4.5
.NET FRAMEWORK COMPONENTS:
The user interface (WPF=Windows Presentation
Foundation): provides user interface.
Messaging (WCF= Windows Communication
Foundation): enables applications to
communicate with each other locally or
remotely.
Workflow (WWF= Windows Workflow
Foundation): is used to integrate applications
and automate tasks.
User Identity (WCS=Windows CardSpace):
provides user authentication system.
.NET LIMITATIONS:
.net main weakness is that Microsoft
ignored the:
Unix OS environments (Does not
support Linux)
And mainframe environment (Can’t
work in Mainframe environment).
.NET PRODUCTS:
Office.net
Visual Studio.net
Windows.net(Window Server)
ASP.NET:
Released in January 2002 with 1.0
version of the .net framework it’s
successor Microsoft ASP (Active Server
Page) technology.
ASP.net is built on the common
language runtime (CLR) enables the
user to write ASP.net code using any
supported .net language.
ASP.NET COMPARING WITH CLASSIC ASP
ASP introduced in 1998 it was Microsoft’s first server-
side scripting engine.
ASP is a technology enables pages to be executed in
internet server.
ASP files extension .asp written in Vbscript
ASP.net is new generation
ASP.net pages are compiled which makes then faster
than classic ASP.
ASP.net has better language support a large set of user
controls, xml used components and integrated user
authentication.
ASP.net files extension .aspx written in C# and vb.
DEFINITION:
It’s a server-side web application
framework designed for web
development to provide dynamic web
pages.
ASP.NET FEATURES:
Works on top of the HTTP protocol
It is a part of Microsoft .net
Enables creation, deployment and
execution of web applications and
services.
Web application are built using web
forms
Web forms are designed using either
VB or C# languages
ASP.NET VERSIONS:
ASP.NET 1.0 January 2002
ASP.NET 2.0 November 2005
ASP.NET 3.5 November 2007
ASP.NET 4 April 2010
ENVIRONMENTS:
Visual Studio
Microsoft Visual Web Developer
PREREQUISITES
Designed for web and application
developers who want to build dynamic
database-enabled web sites.
Useful programming skills …
HTML …
Cascading Style Sheets (CSS) …
Basic Programming …
SQL (Structured Query Language)
HARDWARE AND SOFTWARE
A Windows-based computer
Windows Vista or Windows XP (SP2 or
Higher)
For installing Internet Information
Services (IIS) Vista Home Premium or
Higher ... XP Professional or Higher …
Windows Server 2003 or 2008.
At least 1 Gigabyte of RAM … two
Gigabytes are better.
HOW WEB WORKS
The World Wide Web consists of many
clients and servers connected over
internet.
Computers communicate with each
other using Hyper Text Transfer Protocol
(HTTP).
A client sends a request in HTTP format
for a web resource … requests
CONT
A client sends a request in HTTP format
for a web resource … requests
o Web Page …
o Image File …
o JavaScript … CSS File.
CONT
A server returns a response.
Each client has a web browser …
o Personal Computers (Internet
Explorer, Firefox, Safari).
o Cell phones
o Other devices.
CONT
Each server runs software called an
HTTP server.
o Internet Information Server (Windows
only)
o Apache (All operating systems).
CONT
CONT
DYNAMIC WEB PAGES
Microsoft Active Server Pages (Classic ASP)
Adobe ColdFusion
PHP
Java-based servers (J2EE)
o IBM Websphere
o Oracle Weblogic (formerly BEA Weblogic)
o JBoss
Microsoft ASP.NET
HOSTING ASP.NET PAGES
To view an ASP.NET web page that resides on a web server, we need
to request it using a web browser. The browser sends a request to
the web server, The ASP.NET engine processes the requested page,
returns the resulting HTML to the web server, which then sends it
back to the browser, where it is displayed to the user. When you’re
developing ASP.NET websites, the ASP.NET pages you create are
saved on your personal computer. To test these pages, then, your
computer must have a web server installed. Fortunately, you do not
need to concern yourself with installing a web server on your
computer. Visual Web Developer, the editor we’ll be using
throughout this book to create our ASP.NET websites, includes a
lightweight web server specifically designed for testing ASP.NET
pages.
ADVANTAGES OF ASP.NET HOSTING
Testing can be done while offline
It’s fast—Local requests
Advanced debugging features are
available
It’s secure