Académique Documents
Professionnel Documents
Culture Documents
ASP.NET
Kevin McManus
Adapted from material by Gill Windall and Mark Sapossnek
Introduction to ASP.NET
Contents
• An overview of what .NET is and some of its key
features
• Describe the areas of .NET likely to have an
impact on how web applications are developed
• What is Microsoft .NET?
• Some views
• Web Services
• ASP .NET versus ASP
• .NET Platform and .NET Framework
• Common Language Runtime (CLR)
it’s rubbish!!!
Web Services
• Allow remote access to software components
• via standard web protocols
• Use XML to exchange structured data
• Microsoft .NET is just one implementation of Web
Services but there are many others
• The idea of Web Services is not exclusive to Microsoft
“Last Wednesday, Microsoft released a new software development program
called Visual Studio.Net. …. it represents the company's big leap into Web
services, which many hope will trigger the next generation of corporate
computing innovation. Microsoft spent $2 billion developing Visual Studio.Net
and C#, but just about every other technology company on the planet --
including IBM and Sun Microsystems -- is also placing big bets on Web
services.”
ZDNet Feb 2002
ASP page
(static HTML +
server-side logic)
Introduction to .NET
What is .NET?
• A vision
• web sites will be joined by web services
• new smart devices will join the PC
• user interfaces will become more adaptable
and customizable
• enabled by web standards
Introduction to .NET
What is .NET?
• A platform
• the .NET Framework
• Visual Studio.NET
• .NET Enterprise Servers
} The focus of
this course
Introduction to .NET
What is .NET?
• A business model
• software as a service
• subscription-based services
• application hosting
Introduction to .NET
The .NET Platform
Clients Applications
Web Services
• A programmable application component
accessible via standard web protocols
• The centre of the .NET architecture
• Exposes functionality over the Web
• Built on existing and emerging standards
• HTTP, XML, SOAP, UDDI, WSDL, …
Web Services
Evolution of the Web
HTML, XML
HTML HTML
XML
VB C++ C# JScript …
Visual Studio.NET
Common Language Specification
ASP.NET: Web Services Windows
and Web Forms Forms
ADO.NET: Data and XML
Compiler
C++, C#, VB or any csc.exe or vbc.exe DLL or EXE
.NET language
compil
e
Windows Forms
• Framework for building • Extensible controls
rich clients • Data-aware
• Built upon .NET • Easily hooked into
Framework, languages Web Services
• Rapid Application • ActiveX support
Development (RAD) • Licensing support
• Visual inheritance • Printing support
• Anchoring and docking • Advanced graphics
• Rich set of controls
Web Forms
• Built with ASP.NET
• logical evolution of ASP
• similar development model: edit the page and go
• Requires less code
• actually more code but less programming
• New programming model
• event-driven/server-side controls
• rich controls (e.g. data grid, validation)
• data binding
• controls generate browser-specific code
• simplified handling of page state
Web Forms
• Allows separation of UI and business logic
• separation of concerns is a good thing
• cleaner, more maintainable code
• no more VB
• Uses .NET languages
• not just scripting
• Easy to use components
• XCOPY/FTP deployment
• Simple configuration (XML-based)
Web Forms
• Caching (pages, fragments, custom)
• Scalable session state management
• Tracing support
• ASP.NET is extensible
• no ISAPI / ASP dichotomy
• Automatic process rollover
• Forms-based authentication
ADO.NET
ActiveX Data Objects
Languages
C#
• New language created for .NET
• a Java rip-off
• Safe, productive evolution of C++
• but not as safe as Java until M$ sort out the
exceptions
• Key concepts:
• component-oriented
• everything is an object
• robust and durable code
• preserving your investment
• whatever that means
• Submitted to the ECMA for standardization
© K.M. 2/11/2007 the University of Greenwich 39
Introduction to ASP.NET
Languages
Visual Basic.NET
• Modernizes and simplifies Visual Basic
• because the old VB was pants
• Now provides
• inheritance
• threading
• exception handling
• Support for late binding
• whatever that is
• Actually just C# with a different syntax
• almost
© K.M. 2/11/2007 the University of Greenwich 40
Introduction to ASP.NET
Conclusion
• dotNET is pretty neat really
• even if it does come from M$
• A whole lot of good ideas have been gathered
together without the accumulation of legacy
bugware is observed in other M$ products
• Although .NET initially looked like another attempt
by Mr Evil to take over the world it is remarkably
open and standard compliant compared with other
M$ offerings
• The best bit is probably Visual Studio with it’s
tooled up approach to application development
More Resources
• .NET
• http://www.microsoft.com/net/
• http://msdn.microsoft.com/net/
• http://www.gotdotnet.com
• msnews.microsoft.com news server
• microsoft.public.dotnet.general newsgroup
• XML
• http://msdn.microsoft.com/xml/default.asp
• http://www.w3.org/XML/