Upload
deeptisinghvi
View
215
Download
0
Embed Size (px)
Citation preview
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
1/22
Introduction to ASP.NET
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
2/22
Agenda
Introduction to ASP.NET
ASP.NET Features
XML Web Services
Additional Resources
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
3/22
What is ASP.NET? ASP.NET provides a complete environment for building, deploying and
running .NET Web Applications Ease of Development
Simplified page development model
Target any Web client (PC or mobile device)
Modular, well-factored, extensible architecture
Superior debugging and tracing support
Performance, Scalability, Reliability
Compiled, not interpreted
Rich Caching Support
Web farm scalable session state
Automatically detects and recovers from errors
Ease of Deployment and Configuration No need to bring down web server
Deploy and upgrade running apps with XCOPY,
XML Configuration files
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
4/22
MessageMessage
QueuingQueuing
Trans-Trans-
actionsactions
ActiveActive
DirectoryDirectory
IISIISManage-Manage-
mentment
Inside the .NET Framework
Common Language RuntimeCommon Language Runtime
Common Language RuntimeCommon Language Runtime
Executes code, maintains security,Executes code, maintains security,
handles component plumbing andhandles component plumbing and
dependenciesdependencies
Windows FormsWindows Forms
Secure, easily deployable rich clientSecure, easily deployable rich client
classesclasses
Win
dow
sForm
s
Win
dow
sForm
s
ASP.NETASP.NET
Classes and engine for building,Classes and engine for building,deploying, and running Webdeploying, and running Web
applications and servicesapplications and services
ASP.NE
T
ASP.NE
T
ADO.NETADO.NET
Classes for loosely-coupled dataClasses for loosely-coupled dataaccessaccess
ADO.NET
ADO.NET
Enterprise ServicesEnterprise ServicesA complete set of features enablingA complete set of features enabling
transactions, message queuing,transactions, message queuing,
etc.etc.
E
nterpr i
se
E
nterpr i
se
Services
Services
XML
XML
VB C++ C# Perl Java
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
5/22
Communication ProtocolsCommunication Protocols
XML, SOAP, HTTP, HTMLXML, SOAP, HTTP, HTML
.NET FrameworkDesigned for loosely-coupled computing
Built for Web servicesBuilt for Web services
Integral SOAP & XML supportIntegral SOAP & XML support
High-productivity, multi-High-productivity, multi-language developmentlanguage development
Unified, simplified programmingUnified, simplified programmingmodelmodel
Secure, scalable, high-Secure, scalable, high-performance executionperformance execution
Advanced security and compilerAdvanced security and compiler
technologiestechnologies
WindowsWindows
Application ServicesApplication Services
.NET Framework.NET Framework
Visual Studio .NETVisual Studio .NET
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
6/22
ASP.NET Web Forms
ASP.NET makes pages dramatically easier Requires a lot less code to be written
Enables much cleaner code to be written
Can handle automatic uplevel/downlevel scenarios
ASP.NET enables support for server controls
Controls can handle rendering and interaction
Form1.aspx
codecode
Form1.aspxForm1.aspx
codecode
Form1.aspx.csForm1.aspx.cs
single filesingle file separate files (code-behind)separate files (code-behind)
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
7/22
ASP.NET Web Forms
ASP.NET makes programming web apps easier Write clean code Do more with fewer lines of code
Program in any OO .NET language using code-behind
programming model ASP.NET enables support for server controls
Controls can handle rendering and interaction
Form1.aspx
codecode
Form1.aspxForm1.aspx
codecode
Form1.aspx.csForm1.aspx.cs
single filesingle file separate files (code-behind)separate files (code-behind)
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
8/22
Runtime Compilation
ASPXASPX
FileFile
Request
ASPXASPX
EngineEngine
ParseParse
GendGend
PagePage
ClassClass
Generate
ResponseResponse
RequestRequest
InstantiateInstantiate
ResponseResponse
Code-Code-behindbehind
classclass
PagePage
ClassClass Instantiate,Instantiate,
Process andProcess and
RenderRender
CompileCompile
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
9/22
ASP.NET Controls
Html Controls Map 1:1 with HTML tags
Server Controls
Render client-targeted HTML and script
Consistent, strongly-typed object model
Some render as single HTML tags Some render richer HTML + script
Mobile Device support
Server controls targeted at Cell Phones/PDAs
Small devices with limited screen real estate
HTML + WML/WAP mobile markup support Automatically handle device incompatibilities
Extensive template customization support
WYSIWYG support within Visual Studio.NET
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
10/22
Debugging ASP.NET
Tracing ASP.NET supports page and app tracing
Great way to collect request details
Error Handling .NET provides unified error architecture
ASP.NET also provides declarative application custom errorhandling
Global application event raised if unhandled exception occurs
Use new EventLog class to write custom events to log whenerrors occur
Use new SmtpMail class to send email to administrators
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
11/22
ASP.NET Modular Design
ASP.NET enables customers to replace/extend/customize the core product
Eliminate black box magic with ASP/IIS
Example Customization: Session State, Output Caching,
Authentication/Authorization
Http Runtime: logical replacement for ISAPI API
Enables low-level http programming
Easy programming model for ISAPI-like tasks
ASP.NET can run on any host environment IIS, IE, Apache, SQL, Exchange, etc.
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
12/22
ASPNET_STATE
INETINFO
ASPNET_WP
Caching
HttpHandlersHttpHandlers
PagesPages ServicesServices
ASP.NET Modular Architecture
ASPNET_ISAPIASPNET_ISAPI
Authent Sessions SessionSession
StateStateHTTP RuntimeHTTP RuntimeHttpModulesHttpModules
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
13/22
ASP.NET Caching Support ASP.NET provides built-in caching support
that enables re-use of work
Full Page Caching Vary by params, language, user-agent
Partial Page Caching Enables portions of pages to be cached
Web Service Caching Vary by parameters and methods
Cache Engine: Extensible Cache API Enables arbitrary objects to be cached
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
14/22
Session State
Session State can now be external from ASP.NETWorker Process
ASPState NT Service
SQL Server 7.0
Big reliability wins
Session state survives crashes/restarts
Enables Web farm deployment
Session State can now be shared across a web farm ofASP.NET Servers
Applications no longer tied to one machine
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
15/22
ASP.NET Web Services
Easiest way to build XML Web Services Author class with methods No special HTTP or XML knowledge required
Supports Multiple Message Wire Formats SOAP messaging support
Http Get/Post return XML payloads
Extensible model for innovation
Interoperate with other SOAP applications
Platform neutral technology
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
16/22
Improved Code Deployment
Simple deployment for components Just xcopy/ftp to an applications \bin dir
No registration required (no more regsvr32)
No tools, no configuration changes, no appshutdown, no re-boots
Simple uninstall just delete directory
No registry entries to clean up
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
17/22
Improved Reliability
ASP.NET has been designed with assumption thatfailures will occur on systems
Designing for failure reduced fragility
ASP.NET detects and recovers from problems
Access Violations, Memory Leaks, Deadlocks
ASP.NET supports pre-emptive cycling of apps
Time and Request Based Settings
Net Result: Admins should never think that an ASP.NETapplication is down or unavailable
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
18/22
Summary ASP.NET provides a quantum leap in power
Tons of new features/infrastructure
ASP.NET will make building web apps easier
Much less plumbing code required
Enable developers to focus on customers
ASP.NET will enable customers to develop a new breedof web applications
More opportunities to build richer apps
Customer reaction has been fantastic
Visit http://www.asp.net to learn more
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
19/22
Teaching with ASP
Introduction to Programming
Systems Analysis/Design
E-Commerce Applications Database Design & Management
Interoperability
Web Development GUI Development
Distributed Computing
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
20/22
The .NET Framework in Curriculum
Multi-language runtime environment Use the language you like Access the same class libraries to do similar tasks
Use a powerful IDE to access easy-to-use
learning tools Visual Studio .NET Academic
Experience programming with .NET bybuilding your own Terrarium creature at the
Hands-On Lab (Booth #301)
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
21/22
Microsoft Resources for Faculty MSDN Academic Alliance
Check out MSDN AA Kiosk at the Microsoft Booth New program from Microsoft
Software for computer science, engineering, and IScourses.
Annual membership fee of $799 per department Membership runs from July-June
Web site that supports program:(www.msdnaa.net)
Visual Studio .NET Academic
All the features of Visual Studio .NET Professionalplus Course Management Tools
8/14/2019 Presentations ISIS Davemi Intro ASP.net Final
22/22