Introduction to ASP'NET - PowerPoint PPT Presentation

1 / 83
About This Presentation
Title:

Introduction to ASP'NET

Description:

none – PowerPoint PPT presentation

Number of Views:123
Avg rating:3.0/5.0
Slides: 84
Provided by: cimsCl
Category:
Tags: asp | net | asp | introduction | net

less

Transcript and Presenter's Notes

Title: Introduction to ASP'NET


1
Introduction to ASP.NET
Microsoft Corporation
2
What We Will Cover
  • Introduction to Microsoft .NET
  • Classic ASP
  • Microsoft ASP.NET
  • Server controls
  • Data controls
  • ASP.NET Web applications
  • Business objects
  • Web services
  • Additional topics

3
Session Prerequisites
  • This session assumes that you understand the
    fundamentals of
  • Development on Microsoft Windows
  • ASP or Microsoft Visual Basic
  • This is a Level 100 Session

4
So Why This Presentation?
  • ASP.NET offers many enhancements over classic ASP
    but
  • With ASP.NET, theres a lot new to learn
  • Solves many ASP issues
  • RAD for the Web

5
Demonstrations
  • ASP vs. ASP.NET
  • Server controls walk-through
  • Validation
  • Data controls
  • Cookieless sessions
  • Web services
  • Page caching

6
Agenda
  • Introduction to .NET
  • Classic ASP
  • ASP.NET
  • Server controls
  • Data controls
  • ASP.NET Web applications
  • Business objects
  • Web services
  • Additional topics

7
Introduction to .NET1st Generation
Servers Data, Hosts
Client Logic
Biz Logic
OS Services
Microsoft provided COM, IIS, Internet Explorer
8
Introduction to .NET2nd Generation
Servers Data, Hosts
Rich Client Logic
Browsers
9
Introduction to .NETWeb Services The Next
Generation
Applications Become Programmable Web Services
Standard Browsers
Open Internet Communications Protocols (HTTP,
SMTP, XML, SOAP)
Richer, MoreProductive User Experience
Applications LeverageGlobally-AvailableFederated
Web Services
10
Introduction to .NETWeb Services The Next
Generation
Applications Become Programmable Web Services
Standard Browsers
Open Internet Communications Protocols (HTTP,
SMTP, XML, SOAP)
Richer, MoreProductive User Experience
Applications LeverageGlobally-AvailableFederated
Web Services
11
Introduction to .NETThe .Net Platform
Internet Protocols SOAP blue book HTTP, SMTP,
XML
12
Introduction to .NETThe .NET Framework and
Visual Studio .NET
Visual Basic
C
C
Visual Studio .NET
JScript

Common Language Specification
ASP.NET Web Services and Web Forms
WindowsForms
ADO.NET Data and XML
Base Class Library
Common Language Runtime
13
Introduction to .NETASP.NET
Visual Studio.NET
Visual Basic
C
C
JScript

Common Language Specification
ASP.NET Web Services and Web Forms
WindowsForms
ADO.NET Data and XML
Base Class Library
Common Language Runtime
14
Agenda
  • Introduction to .NET
  • ASP today
  • ASP.NET
  • Server controls
  • Data controls
  • ASP.NET Web applications
  • Business objects
  • Web services
  • Additional topics

15
Classic ASP Successes
  • Simple procedural programming model
  • Access to COM Objects
  • ADO
  • File system object
  • No compiling, just save
  • Support for multiple scripting languages
  • Mix HTML and code
  • VBscript leverage Visual Basic skills

16
Classic ASPChallenges
  • Code readability
  • Coding overhead
  • PostBack complexity
  • Reuse
  • Performance
  • DLL locking
  • Deployment
  • Sessions
  • Caching

17
Classic ASPChallenges
  • Code readability
  • Coding overhead
  • PostBack complexity
  • Reuse
  • Performance
  • DLL locking
  • Deployment
  • Sessions
  • Caching

18
Agenda
  • Introduction to .NET
  • Classic ASP
  • ASP.NET
  • Server controls
  • Data controls
  • ASP.NET Web applications
  • Business objects
  • Web services
  • Additional topics

19
ASP.NET Architecture
ASPX
.ASPX
20
ASP.NET Architecture
.ASPX
Compiled
21
ASP.NET Architecture
.ASPX
Compiled
22
ASP.NET Architecture
.ASPX
Compiled
.ASPX
Compiled
23
ASP.NETExecution Model
Source code
Visual Basic
C
C
Unmanaged Component
Compiler
Compiler
Compiler
Managed code
Assembly IL Code
Assembly IL Code
Assembly IL Code
Common Language Runtime
JIT Compiler
Native Code
Operating System Services
24
ASP.NETExecution Model
Source code
Visual Basic
C
C
Unmanaged Component
Compiler
Compiler
Compiler
Managed code
Assembly IL Code
Assembly IL Code
Assembly IL Code
Common Language Runtime
JIT Compiler
Native Code
Operating System Services
25
ASP.NET Features
  • ASPX, ASP side by side
  • Simplified programming model
  • Simplified deployment
  • Better performance
  • Caching
  • Security
  • Powerful controls

26
ASP.NET Features
  • Simplified browser support
  • Simplified form validation
  • Code behind pages
  • More powerful data access
  • Web services
  • Better session management

27
ASP.NETFeatures
  • No DLL locking
  • No DLL registration
  • Simplified configuration
  • Pagelets

28
Demonstration 1ASP vs. ASP.NET Data-Driven
ASPData-Driven ASP.NETComparison
29
Agenda
  • Introduction to .NET
  • Classic ASP
  • ASP.NET
  • Server controls
  • Data controls
  • ASP.NET Web applications
  • Business objects
  • Web services
  • Additional topics

30
Server ControlsSimplify Common Tasks
  • Simplify common tasks
  • Forms
  • Tables
  • Data display
  • Calendar
  • Ad rotator
  • Server-side programming model
  • Automatic browser compatibility
  • Less code, less complexity
  • Extensible

31
Server Controls HTML and Server Controls
  • ltdiv id"MyDiv" runat"server"/gt
  • ltaspTextBox id"txtUserName" runat"Server"/gt
  • ltaspbutton type"submit" OnClick"SubmitBtn_Click
    " runat"server"/gt
  • ID uniquely identifies control
  • Runat enables server-side processing
  • OnClick identifies server-side event handler

32
Server ControlsForms
  • ltscript language"C" runatservergt
  • void SubmitBtn_Click(Object sender, EventArgs e)
  • Response.Write (Hello txtUserName.Text)
  • lt/scriptgt
  • PostBack
  • Server-side object automatically populated from
    client-side controls

33
Server ControlsBrowser Support
  • Targets client on the fly
  • ltasptextbox ForeColorred/gt
  • Style
  • Font
  • Validation
  • Client-side
  • Server-side

34
Demonstration 2Server Controls
Walk-ThroughProgramming ModelSyntax

35
Server ControlsValidation
  • Without code
  • Required field
  • Within range
  • Two fields equal (password)
  • Regular expressions
  • Validation error messages
  • With code, but simplified
  • Custom validation

36
Demonstration 3Validation Required
FieldValidation Summary
37
Agenda
  • Introduction to .NET
  • Classic ASP
  • ASP.NET
  • Server controls
  • Data controls
  • ASP.NET Web applications
  • Business objects
  • Web services
  • Additional topics

38
Data Controls
  • Bind to many data sources
  • Collections
  • Array
  • HashTable
  • ADO.NET
  • DataReader
  • DataSet
  • XML

39
Data ControlsADO.NET
  • Connection
  • Command
  • DataReader
  • DataSet
  • DataAdapter
  • DataView

40
Data ControlsADO.NET
DataSet
Authors
Database
Connection
DataAdapter
Select from Authors
41
Data ControlsADO.NET
DataSet
Publishers
Database
Connection
DataAdapter
Select from Publishers
42
Data ControlsADO.NET
DataSet
43
Data ControlsDataGrid
  • Displays data as a table
  • Control over
  • Alternate item
  • Header
  • Footer
  • Colors, font, borders, etc.
  • Paging
  • Updateable
  • Item as row

44
Data ControlsRepeater
  • List format
  • No default output
  • More control
  • More complexity
  • Item as row
  • Not updateable

45
Data ControlsDataList
  • Directional rendering
  • Good for columns
  • Item as cell
  • Alternate item
  • Updateable

46
Demonstration 4Data Controls ADO.NETDataGridR
epeater DataList
47
Agenda
  • Introduction to .NET
  • Classic ASP
  • ASP.NET
  • Server controls
  • Data controls
  • ASP.NET Web applications
  • Business objects
  • Web services
  • Additional topics

48
ASP.NET Web Applications
  • Global ASAX
  • Application_Start
  • Application_End
  • Session_Start
  • Session_End
  • Session
  • Application

49
ASP.NET Web Applications web.config
  • Site configuration file
  • Like an .INI file for your site
  • XML format
  • Extensible
  • Some settings
  • Security
  • Session
  • Localization
  • Tracing
  • Debugging

50
ASP.NET Web Applications Session Variables
  • Store state information
  • No longer require cookies
  • Share between servers
  • ltsessionState
  • modeStateServer
  • stateConnectionString"tcpip127.0.0.142424"
  • sqlConnectionString"data source127.0.0.1user
    idsapassword"
  • cookieless"false"
  • timeout"20"
  • /gt

51
Demonstration 5Cookieless Sessions Sessions
with cookiesweb.configSessions without cookies
52
Agenda
  • Introduction to .NET
  • Classic ASP
  • ASP.NET
  • Server controls
  • Data controls
  • ASP.NET Web applications
  • Business objects
  • Web services
  • Additional topics

53
Business Objects
  • Problems with ASP and DLLs
  • DLLs with .NET

54
Business Objects Problems with ASP and DLLs
  • DLL Locking
  • Page hit
  • Shutdown Web application
  • Shutdown Internet Information Server
  • Edit in Visual Interdev
  • MTS/COM
  • Shutdown package
  • Binary compatibility
  • Registry

55
Business Objects DLLs with .NET
  • Not registered
  • Placed in ./bin directory
  • Not locked
  • Shadow copy

56
Agenda
  • Introduction to .NET
  • Classic ASP
  • ASP.NET
  • Server controls
  • Data controls
  • ASP.NET Web applications
  • Business objects
  • Web services
  • Additional topics

57
Web Services
  • The Web today
  • How Web services work

58
Web Services The Web Today
Designed for people to browse
59
Web Services The Web Today
Server to server is a problem
60
Web ServicesWhat Are Web Services?
  • Allow applications to communicate across the
    Internet
  • Platform independent
  • Protocol independent
  • Synchronous/asynchronous
  • Stateful/stateless
  • BizTalk
  • ASP.NET

61
Web Services
Class Courseware WebMethod GetPrice Purchase
.ASMX
62
Web Services
Testing
.ASMX
63
Web Services
WSDL
.ASMX
Proxy DLL
64
Web Services
Register for Course
Purchase Courseware
.ASMX
Proxy DLL
65
Demonstration 6Web Services Web Service
SourceTestingWSDLClient Proxy
CreationConsuming a Web Service
66
Agenda
  • Introduction to .NET
  • Classic ASP
  • ASP.NET
  • Server controls
  • Data controls
  • ASP.NET Web applications
  • Business objects
  • Web services
  • Additional topics

67
Additional Topics
  • Deployment
  • Scalability
  • Caching
  • Authentication and authorization
  • Availability

68
Additional Topics Deployment
  • Copy
  • Components in .\bin
  • No registering DLLs
  • No locked DLLs
  • Apps are isolated
  • Each app can have its own version
  • Uninstall
  • Delete

69
Additional Topics Scalability Improvements
  • ASP.NET pages are complied
  • State shared across machines
  • Managed providers
  • Disconnected data access
  • Caching

70
Additional Topics Caching
  • Page output caching
  • lt_at_ OutputCache Duration"60" VaryByParam"none"
    gt
  • Page data caching
  • CacheMyDataSet SomeDataSet
  • Like application variables
  • Scavenging
  • Expiration
  • Dependencies

71
Additional Topics Authentication
  • Supports basic, digest, cookie, and Windows
    authentication, Passport
  • Form-based authentication
  • Users or roles
  • One API for user info

72
Demonstration 7Page Caching Compare
Performance
73
Call To Action
  • Download the .NET Framework SDK
  • Build a new ASP.NET application, or migrate from
    ASP

74
(No Transcript)
75
Session Summary
  • ASP.NET offers many enhancements
  • Improved session state
  • Improved programming model
  • Validators
  • Caching
  • In-place updating of sites
  • The list goes on

76
For More Information
  • MSDN Web site at
  • msdn.microsoft.com
  • msdn.microsoft.com/net
  • C Language Reference
  • msdn.microsoft.com/library/prelim/csref/vcoricrefe
    rence.htm

77
For More Information
  • .NET Resources/Quickstart Tutorials
  • http//www.gotdotnet.com

78
MSDNEssential Resources for Developers
Subscription Services
Library, OS, Professional, Enterprise, Universal
Delivered via CD-ROM, DVD, Web
OnlineInformation
MSDN Online, MSDN Flash, How-To Resources,
Download Center
Training Events
MSDN Webcasts, MSDN Online Seminars, Tech-Ed,
PDC, Developer Days
Print Publications
MSDN Magazine MSDN News
MembershipPrograms
MSDN User Groups
79
How-To ResourcesSimple, Step-By-Step Procedures
  • Embedded development how-to resources
  • General how-to resources
  • Integration how-to resources
  • Jscript .NET how-to resources
  • .NET development how-to resources
  • Office development resources
  • Security how-to resources
  • Visual Basic .NET how-to resources
  • Visual C .NET how-to resources
  • Visual Studio .NET how-to resources
  • Web development how-to resources (ASP, IIS, XML)
  • Web services how-to resources
  • Windows development how-to resources
  • http//msdn.microsoft.com/howto

80
MSDN WebcastsInteractive, Live Online Events
  • Interactive, synchronous, live online events
  • Discuss the hottest topics from Microsoft
  • Open and free for the general public
  • Take place every Tuesday
  • http//www.microsoft.com/usa/webcasts

81
MSDN Subscriptions The way to get Visual Studio
.NET
MSDN Subscriptions
Visual Studio .NET
  • Enterprise Architect
  • Software and data modeling
  • Enterprise templates
  • Architectural guidance

MSDN Universal2799 new2299 renewal/upgrade
  • Enterprise Developer
  • Enterprise lifecycle tools
  • Team development support
  • Core .NET Enterprise Servers

MSDN Enterprise2199 new1599 renewal/upgrade
NEW
  • Professional
  • Tools to build applications and XML Web services
    for Windows and the Web

MSDN Professional1199 new899 renewal/upgrade
82
Where Can I Get MSDN?
  • Visit MSDN Online atmsdn.microsoft.com
  • Register for the MSDN Flash e-mail newsletter at
  • msdn.microsoft.com/flash
  • Become an MSDN CD subscriber at
    msdn.microsoft.com/subscriptions
  • MSDN online seminars
  • msdn.microsoft.com/training/seminars
  • Attend more MSDN events

83
Microsoft PressEssential Resources for
Developers
Microsoft Visual Studio .NET is here! This is
your chance to start building the next big thing.
Develop your .NET skills, increase your
productivity with .NET Books from Microsoft
Press. www.microsoft.com/mspress
84
Become a Microsoft Certified Solution Developer
  • What is MCSD?
  • Premium certification for professionals who
    design and develop custom business solutions
  • How do I attain MCSD certification?
  • It requires passing four exams to prove
    competency with Microsoft solution architecture,
    desktop applications, distributed application
    development, and development tools
  • Where do I get more information?
  • For more information about certification
    requirements, exams, and training options, visit
    www.microsoft.com/mcp

85
TrainingTraining Resources for Developers
  • Introduction to ASP.NET
  • Course no. 2063
  • Detailed syllabus www.microsoft.com/traincert

To locate a training provider for this course,
please access www.microsoft.com/traincert
Microsoft Certified Technical Education Centers
are Microsofts premier partners for training
services
86
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com