Fraser Gallop: Microsoft Student Consultant University of Alberta
Fraser Gallop: Microsoft Student Consultant University of Alberta
NET
Fraser Gallop
Microsoft Student Consultant
University of Alberta
The 5 Pillars of .NET
Devices
PocketPC, Cell Phones, Desktop, WebTV
Development Tools
.NET Framework
Operating System
Heading towards a new
model for the Internet
XML
Web Web
Service Service
XML
XML
Web Web
Service Service
“Building
Client Block
Client
Device Device Services”
XML
3
Pre-ASP Era
In the old days…
1. Send a request to
the server
2. Receive a reply
containing the Client
requested data
Server 4
Entering the ASP Era
5
The ASP Era
6
Upsides to ASP
7
Downsides to ASP
8
A New Era – ASP.NET
9
New Features in ASP.NET
Pre-fabricated controls
Similar to Windows controls
Built-in security mechanisms
Web farmable session management
Just-in-time compilation
No server restarts required
Settings stored in XML
10
Web Controls Function
Text display
Name
Label
Text edit TextBox
Selection from a list DropDownList
11
Page execution engine
1. .ASPX page request 2. Request forwarded
from client to execution engine
IIS
Execution engine
4. Loads compiled class and creates
Code-behind object code-behind object.
contains event handlers. 5. Code-behind object creates
controls and tells controls to render
themselves in HTML.
12
The Web.config file
App B subdir
web.config
13
State Management
Client Browser
Server
1. Client requests first page
Session ID cookie 2. Server receives request, creates
Session object, stores cookie on
4. Client requests second the client.
page, passing cookie.
3. Programmer stores data in Session object
14
Security
Different areas of an application require different
levels of security
Does not provide data encryption
Authorization can be specified in the web.config file
Name Description
None Anonymous access to pages
Windows Standard Windows authentication from IIS (best for Windows-
only intranets)
Forms All page request headers contain a cookie issued by the server,
pages requested without the cookie are redirected to a login
page (best for sites with many users where issuing a Windows
account is not practical)
Passport Uses Microsoft’s external Passport authentication service (a
cool alternative to forms-based authentication)
15
Demonstration
17