asp
DESCRIPTION
PresentationTRANSCRIPT
- 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 .NET 1 stGeneration OSServices Microsoft provided COM, IIS, Internet Explorer Servers Data, Hosts Client Logic Biz Logic Applications largely operating in a client / server model were augmented with Web browser and servers.The industry focused on rich OS and local services provided by products like SQL Server. Browsers Web app developers took advantage of these local servicesand used HTMLto project the UI to many types of clients 8. Introduction to .NET 2 ndGeneration Rich Client Logic Servers Data, Hosts Browsers Combination of stateless Web protocols with DNS and IP routing have enabled mass-scale geo-scalability Stateful Stateless & Geo-Scalable OSServices Biz Tier Logic Separation of data and business logic provide greater scalability and performance while accessing enterprise and legacy data.COM+ Services improve reliability, scalability and manageability. Internet Explorer provides DHTML for better interactivity. 9. Introductionto.NET Web Services:The Next Generation Standard Browsers Open InternetCommunications Protocols(HTTP, SMTP, XML, SOAP)Richer, More Productive User Experience Applications Leverage Globally-Available Federated Web Services Applications BecomeProgrammable Web Services Smarter Clients Smarter Devices OSServices Biz Tier Logic Biz Logic& Web Service OS Services Public Web Services Building Block Services Internal Services XML XML XML Servers Data, Hosts XML Other Services XML XML XML HTML 10. Introductionto.NET Web Services:The Next Generation Standard Browsers Open InternetCommunications Protocols(HTTP, SMTP, XML, SOAP)Richer, More Productive User Experience Applications Leverage Globally-Available Federated Web Services Applications BecomeProgrammable Web Services Smarter Clients Smarter Devices OSServices Biz Tier Logic Biz Logic& Web Service OS Services Public Web Services Building Block Services Internal Services XML XML XML Servers Data, Hosts XML Other Services XML XML XML HTML 11. Introduction to .NET The .Net Platform Internet Protocols SOAP blue book HTTP, SMTP, XML .NETFramework Windows CE, 2000, XP, .NET Operations Orchestration ApplicationsUsing YourService End-User Clients .NET Enterprise Servers .NET Foundation Services 3 rdParty Web Services Your InternalServices VisualStudio .NET Your Applicationand Web Service 12. Introduction to .NET The .NET Framework and Visual Studio .NET Base Class Library Common Language Specification Common Language Runtime ADO.NET: Data and XML Visual Basic C++ C# Visual Studio .NET ASP.NET: Web Services and Web Forms JScript Windows Forms 13. Introduction to .NET ASP.NET Base Class Library Common Language Specification Common Language Runtime ADO.NET: Data and XML Visual Studio.NET ASP.NET: Web Services and Web Forms Windows Forms Visual Basic C++ C# JScript 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 ASPSuccesses
- 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 ASP Challenges
- Code readability
- Coding overhead
- PostBack complexity
- Reuse
- Performance
- DLL locking
- Deployment
- Sessions
- Caching
17. Classic ASP Challenges
- 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.NETArchitecture ASPX .ASPX 20. ASP.NETArchitecture .ASPX Compiled 21. ASP.NETArchitecture .ASPX Compiled 22. ASP.NETArchitecture .ASPX Compiled .ASPX Compiled 23. ASP.NET Execution Model Visual Basic Source code Compiler C++ C# Compiler Compiler Assembly IL Code Assembly IL Code Assembly IL Code Operating System Services Common Language Runtime JIT Compiler Native Code Managed code Unmanaged Component 24. ASP.NET Execution Model Visual Basic Source code Compiler C++ C# Compiler Compiler Assembly IL Code Assembly IL Code Assembly IL Code Operating System Services Common Language Runtime JIT Compiler Native Code Managed code Unmanaged Component 25. ASP.NETFeatures
- ASPX, ASP side by side
- Simplified programming model
- Simplified deployment
- Better performance
- Caching
- Security
- Powerful controls
26. ASP.NETFeatures
- Simplified browser support
- Simplified form validation
- Code behind pages
- More powerful data access
- Web services
- Better session management
27. ASP.NET Features
- No DLL locking
- No DLL registration
- Simplified configuration
- Pagelets
28. Demonstration 1 ASP vs. ASP.NET Data-Driven ASP Data-Driven ASP.NET Comparison 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 Controls Simplify 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 ControlsHTML and Server Controls
-
- ID uniquely identifies control
- Runat enables server-side processing
- OnClick identifies server-side event handler
- void SubmitBtn_Click(Object sender, EventArgs e) {
- Response.Write (Hello + txtUserName.Text);
- }
- PostBack
-
- Server-side object automatically populated from client-side controls
- Targets client on the fly
-
- Style
-
- Font
- Validation
-
- Client-side
-
- Server-side
- Without code
-
- Required field
-
- Within range
-
- Two fields equal (password)
-
- Regular expressions
-
- Validation error messages
- With code, but simplified
-
- Custom validation
- Introduction to .NET
- Classic ASP
- ASP.NET
- Server controls
- Data controls
- ASP.NET Web applications
- Business objects
- Web services
- Additional topics
- Bind to many data sources
-
- Collections
-
-
- Array
-
-
-
- HashTable
-
-
- ADO.NET
-
-
- DataReader
-
-
-
- DataSet
-
-
- XML
- Connection
- Command
- DataReader
- DataSet
- DataAdapter
- DataView
- Displays data as a table
- Control over
-
- Alternate item
-
- Header
-
- Footer
-
- Colors, font, borders, etc.
-
- Paging
- Updateable
- Item as row
- List format
- No default output
- More control
- More complexity
- Item as row
- Not updateable
- Directional rendering
- Good for columns
- Item as cell
- Alternate item
- Updateable
- Introduction to .NET
- Classic ASP
- ASP.NET
- Server controls
- Data controls
- ASP.NET Web applications
- Business objects
- Web services
- Additional topics
- Global ASAX
-
- Application_Start
-
- Application_End
-
- Session_Start
-
- Session_End
- Session
- Application
- Site configuration file
- Like an .INI file for your site
- XML format
- Extensible
- Some settings
-
- Security
-
- Session
-
- Localization
-
- Tracing
-
- Debugging
- Store state information
- No longer require cookies
- Share between servers
-
- mode=StateServer
-
- stateConnectionString="tcpip=127.0.0.1:42424"
-
- sqlConnectionString="data source=127.0.0.1;user id=sa;password="
-
- cookieless="false"
-
- timeout="20"
- />
- Introduction to .NET
- Classic ASP
- ASP.NET
- Server controls
- Data controls
- ASP.NET Web applications
- Business objects
- Web services
- Additional topics
- Problems with ASP and DLLs
- DLLs with .NET
- DLL Locking
-
- Page hit
-
- Shutdown Web application
-
- Shutdown Internet Information Server
-
- Edit in Visual Interdev
- MTS/COM+
-
- Shutdown package
-
- Binary compatibility
- Registry
- Not registered
-
- Placed in ./bin directory
- Not locked
-
- Shadow copy
- Introduction to .NET
- Classic ASP
- ASP.NET
- Server controls
- Data controls
- ASP.NET Web applications
- Business objects
- Web services
- Additional topics
- The Web today
- How Web services work
- Allow applications to communicate across the Internet
- Platform independent
- Protocol independent
- Synchronous/asynchronous
- Stateful/stateless
- BizTalk
- ASP.NET
- Introduction to .NET
- Classic ASP
- ASP.NET
- Server controls
- Data controls
- ASP.NET Web applications
- Business objects
- Web services
- Additional topics
- Deployment
- Scalability
- Caching
- Authentication and authorization
- Availability
- Copy
-
- Components in .in
-
- No registering DLLs
-
- No locked DLLs
- Apps are isolated
-
- Each app can have its own version
- Uninstall
-
- Delete
- ASP.NET pages are complied
- State shared across machines
- Managed providers
- Disconnected data access
- Caching
- Page output caching
- Page data caching
-
-
- Cache[MyDataSet] = SomeDataSet
-
-
-
- Like application variables
-
-
-
- Scavenging
-
-
-
- Expiration
-
-
-
- Dependencies
-
- Supports basic, digest, cookie, and Windows authentication, Passport
- Form-based authentication
- Users or roles
- One API for user info
- Download the .NET Framework SDK
- Build a new ASP.NET application, or migrate from ASP
- ASP.NET offers many enhancements
-
- Improved session state
-
- Improved programming model
-
- Validators
-
- Caching
-
- In-place updating of sites
-
- The list goes on
- MSDN Web site at
-
- msdn.microsoft.com
-
- msdn.microsoft.com/net
- C# Language Reference
-
- msdn.microsoft.com/library/prelim/csref/vcoricreference.htm
- .NET Resources/Quickstart Tutorials
-
- http://www.gotdotnet.com
- 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
- 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
- Professional
- Tools to build applications and XML Web servicesfor Windows and the Web
- Enterprise Developer
- Enterprise lifecycle tools
- Team development support
- Core .NET Enterprise Servers
- Enterprise Architect
- Software and data modeling
- Enterprise templates
- Architecturalguidance
- Visit MSDN Online at msdn.microsoft.com
- Register for the MSDN Flash e-mail newsletter at
-
- msdn.microsoft.com/flash
- Become an MSDN CD subscriber atmsdn.microsoft.com/subscriptions
- MSDN online seminars
-
- msdn.microsoft.com/training/seminars
- Attend more MSDN events
- 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,visitwww.microsoft.com/mcp
- Introduction to ASP.NET
-
- Course no. 2063
-
- Detailed syllabus:www.microsoft.com/traincert