TC Sounds - University of San Diego

Download Report

Transcript TC Sounds - University of San Diego

Classic ASP vs. ASP.NET
Technical Information and Market Adoption
Lance Welker
University of San Diego
Dr. Rebman
MSIT 526
December 20, 2005
1
Agenda


Introduction to Dynamic Web pages
Classic ASP



ASP.NET




Technical Details
History
Technical Details
History and Future
Conclusion
Questions/Comments
2
Introduction
3
Dynamic Web Pages
Introduction

In the beginning there was static HTML


All pages maintained the same visual
appearance for all customers
Now everything is dynamic



Decision process prior to sending requested
page to client browser
Enables greater customization and interactivity
Variables include:
 Time
 The customer
 Specific events
4
Classic ASP
5
Classic ASP
Introduction


A server-based technology that developers
use to create dynamic and interactive
HTML pages.
Instructions can:





Request data from a server-side database
Insert data from the client into a database on
the server
Perform mathematical calculations
Perform if-then logic
And much more…
6
Classic ASP
Coding languages

ASP makes use of scripting languages




Can execute high level instructions
individually which simplifies coding
Favors rapid development over efficiency and
execution
Slower to execute and consume more
memory than compiled languages
Languages used include:
 Visual Basic Script (VBScript) *
 Java Script (Jscript)
 Perl Script
 Python
7
Classic ASP
Page structure


HTML source code, ASP statements and text are
intermixed within and HTML page.
For example:






<% IF session(“username”) = “” THEN %>
<h1>You are not currently logged in<h1>
<%ELSE%>
<h1>You are currently logged in as: <br>
<%=session(“username”)%> <h1>
<%END IF%>
All Web browsers work with ASP
8
Classic ASP
More Information

Tools


Interpretation by ASP Script Engine


Every time a page is requested
Security



Debugging issues
ASP code can’t be seen
Authorization and Authentication issues
State management

Cookies are required
9
ASP History
Perfect timing







ASP 1.0 released December 1996
Versioning and bundling
 Internet Explorer
Third party vendors
Web hosting
Books, magazines, Web sites
Workforce talent
Most widely used Web development
language
10
ASP.NET
11
ASP.NET
Today’s version of ASP



Drastically different than Classic version
Ultimately enables Web pages to replace
applications traditionally loaded on local
drives.
Designed to provide easier, more
consistent development environment than
Classic ASP
12
ASP.NET
Today’s version of ASP


More structured and object-oriented
Managed CLR





Variable declarations
Not backwards compatible
Separation of logic and layout, can be a
different page
Execution order must be specified
Not platform independent
13
ASP.NET
Compiled language

ASP.NET uses a compiler






Assembly
Faster
Cross language integration
Debugging
Enhanced security
Languages used



MS Visual Basic .NET
MS Visual C# .NET
Jscript .NET
14
ASP.NET
More Information



Greatly enhanced object class libraries
Security is more easily dealt with
Maintaining session state is easier


no cookies are needed
WYSIWYG editors available


MS Visual Studio .NET
ASP.NET Web Matrix Project

DataGrid
15
ASP.NET
More Information



January 2002, ASP.NET 1.0
November 2005, ASP.NET 2.0
Market attitudes, adoption


Much more complicated
Need to understand OO programming
16
Conclusion
17
Conclusion
Classic ASP will survive

Until ASP.NET becomes necessary for the
masses, Classic ASP will maintain a large
user group
18
Comments and Questions

Thank you for your time
19