+ All Categories
Home > Documents > Introduction to ASP .NET

Introduction to ASP .NET

Date post: 21-Jan-2016
Category:
Upload: hanh
View: 47 times
Download: 2 times
Share this document with a friend
Description:
Introduction to ASP .NET. Prehistory of ASP .NET. Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive and animated content  Javascript (client-side) Need for database-driven web sites  CGI, ASP, JSP, PHP, ColdFusion (server-side). - PowerPoint PPT Presentation
13
Introduction to ASP .NET
Transcript
Page 1: Introduction to ASP .NET

Introduction to ASP .NET

Page 2: Introduction to ASP .NET

Prehistory of ASP .NET• Original Internet – text based

• WWW – static graphical content HTML (client-side)

• Need for interactive and animated content Javascript (client-side)

• Need for database-driven web sites CGI, ASP, JSP, PHP, ColdFusion (server-side)

Page 3: Introduction to ASP .NET

About Processing on the Web

• Hypertext Transfer Protocol (HTTP)

• Request-Response Model

• Statelessness of the web

Page 4: Introduction to ASP .NET

Web server

browser builds an HTTP request and sends it to the IP address indicated by the URL.

Web server on the destination host machine (identified by IP address) receives the request and, after any necessary processing, the requested file is returned.

Safari

Page 5: Introduction to ASP .NET

Web Server

• Running on Host– In Microsoft world this is Internet Information

Server (IIS)• Linux Apache

– With ASP and .NET Framework, IIS can produce dynamic content (automatically-generated

Page 6: Introduction to ASP .NET

Technologies for Server Side Processing

• CGI – Common Gateway Interface

• Java Server Pages (JSP), Java Servlets

• ActiveX Server Pages (ASP)

• PHP Preprocessor (PHP)

• ASP .NET

Server-side processing enables 3-tier architectures

Page 7: Introduction to ASP .NET

Three-Tier Architectures• Three layers:

– Client– Application server– Database server

Thin Client PC just for user interface and a little application

processing. Limited or no data storage (sometimes no hard drive)

GUI interface (I/O processing)

Browser(with HTML/Javascript)

Business rules Web Server(with ASP .NET)

Data storageDBMS

Page 8: Introduction to ASP .NET

Three-tier architecture

Thinnest Thinnest clientsclients

Business rules on Business rules on separate serverseparate server

DBMS only DBMS only on DB serveron DB server

Page 9: Introduction to ASP .NET

Problems with Old ASP• Code mixing (HTML, Javascript, VBScript inline)

hard to understand and maintain

• Interpreted no compiled ahead of time, slows processing

• ASP .NET allows for both code separation and pre-compiled processing

• Same is true with PHP and JSP– Frameworks exist for both to enable code separation

Page 10: Introduction to ASP .NET

ASP .NET’s improvements over old ASP

• More object-oriented and event-driven – robust class library– ability to create more efficient and reusable code

• Multiple Language Support (VB, C#, C++, JScript.NET)– via Common Language Runtime– other languages can be added to the list

• Powerful control objects (server controls, user controls)– “automatic HTML-generators”

• Code Separation Support– can separate HTML code (display) from VB/C# code (server side processing) through use of

server or user controls– use of code-behind files

• Smart Code Output– automatic generation of browser/device compatible output– use of form validation controls

• Deployment - easier administration of web sites– simplicity in installing components– Use of web.config file for configuration – and bin directory for Assemblies (DLLs)

Page 11: Introduction to ASP .NET
Page 12: Introduction to ASP .NET

.NET Framework Terms

• NET Framework – software framework that runs primarily on

Microsoft Windows. – Framework –

• Common Language Runtime (CLR) – run time environment that provides the underlying infrastructure for Microsoft's .NET framework (pp17-18)

• Assembly – a .dll file (dynamic link library) that contains executable code compiled for the CLR (pp14-17)

Page 13: Introduction to ASP .NET

http://en.wikipedia.org/wiki/.NET_Framework

Common Intermediate Language (CIL) is like Java’s bytecode

Common Language Runtime (CLR) islike Java’s virtual machine

Virtual Execution System (VES) is the “simulated CPU” upon which the CLR operates.

These compilers generate managed code. Managed code is code that is run within the Common Language Infrastructure (CLI).

Note: Visual C++ can compile into either managed or unmanaged code. Unmanaged code is compiled directly to the machine language of the CPU, and is not part of the CLR


Recommended