Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 74 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
74
Dung lượng
323 KB
Nội dung
ASP.NET Module Subtitle Objectives Introduction to ASP.NET Concepts and Architecture ASP.NET Features Advanced ASP.NET ASP.NET and the Microsoft® NET Framework Contents Section 1: Overview Section 2: Architecture Microsoft NET Framework and ASP.NET Configuration Section 3: ASP.NET Features State Management, Security, and Event Model Section 4: Advanced ASP.NET Web Forms and Web Services Working with Data ASP to ASP.NET Migration Appendix: Exploring Duwamish Online Section 1: Overview “Looking Back “ ASP.NET Core Concepts Looking Back: Active Server Pages What is ASP? Server-side scripting technology Files containing HTML and scripting code Access via HTTP requests Scripting code is interpreted on server side What can I with ASP? Easily and quickly create simple Web applications Generate dynamic Web content Client-side scripting for validation Access COM components to extend functionality Databases What’s Wrong with That? Mixes layout (HTML) and logic (scripting code) Interpreting Uses ASP code leads to performance loss scripting languages that are not strongly typed Microsoft JScript® Microsoft Visual Basic® Scripting Edition (VBScript) Browser No compatibility real state management No state sharing across Web farms State is lost when IIS fails Update files only when server is down ASP.NET Core Concepts Web development platform New programming model Web Client IIS ASP.NET Applications NET Framework Operating System ASP.NET Core Concepts Separate Use layout and business logic services provided by the NET Framework Code is compiled the first time a page is requested State management Make use of programming languages Cross-language integration Update files while the server is running! Section 2: Architecture The NET Framework Architecture Web Application Model Configuration Class Hierarchy The NET Framework Architecture Microsoft NET Framework ASP.NET Web Forms Windows Forms Web Services Services Framework Base Data Debug Common Language Runtime System Services Migration Issues Structure Code blocks and directives Security ASP.NET security was described earlier Languages C#, Visual Basic.NET Data Access ADO to ADO.NET Summary Now you have been introduced to ASP.NET Configuration Web Forms and Web Services Security State Management Accessing Data Web Applications Migration Questions? Duwamish Books A Sample Application for Microsoft NET Installing the Sample 1/2 Install the "Enterprise Samples" with Visual Studio.NET Location of the C# Version Visual Studio.NET folder Directory \EnterpriseSamples\DuwamishOnline CS Location of the Visual Basic Version Directory \EnterpriseSamples\DuwamishOnline VB Installation Tasks Check the prerequisites Microsoft Windows® 2000 Server; Microsoft SQL Server™ 2000 with English Query optional and supported Read the Readme.htm Run Installer Duwamish.msi (double-click it) Installing the Sample 2/2 The installation wizard will guide you Defaults Setup After should be OK for almost everybody will install database, Web site, and code installation is complete: Visual Studio.NET Open the Duwamish.sln file with File/Open Solution Can build the sample with Build/Build Solution NET Framework SDK Can build from command line with: nmake /a -f duwamish.mak CFG=< config > all is either Debug or Release Duwamish Architecture Overview User / Browser ASP.NET IIS Web BusinessRules DataAccess ADO.NE T Database Common.Data SystemFramework BusinessFacade Common Components Duwamish7.Common Contains systems configuration options Contains common data definitions (classes) Namespace Duwamish.Common.Data "Internal" data representation for Book, Category, Customer, OrderData Duwamish7.SystemFramework Diagnostics utilities Pre and post condition checking classes Dynamic configuration In short: Everything that's pure tech and not business code Duwamish7.DataAccess Contains Uses all database-related code ADO.NET architecture Using SQL Server managed provider Shows DataSet, DataSetCommand usage Optimized for performance by using stored procs Duwamish7.BusinessRules Implements all business rules Validation of business objects (Customer EMail) Updating business objects Calculations (Shipping Cost, Taxes) All data access performed through DataAccess Duwamish7.BusinessFacade Implements logical business subsystems CustomerSystem: Profile management OrderSystem: Order management ProductSystem: Catalog management Reads Data data through DataAccess validated and updated using BusinessRules BusinessFacade functionality encapsulates all business-related Duwamish7.Web Implements Uses the user interface for Web access ASP.NET architecture Employs Web Forms model Uses code behind forms Manages state Uses custom Web controls All functionality accessed through BusinessFacade Shop at Duwamish Online.NET Demo: Duwamish in Action Exploring Duwamish.Web Exploring ASP.NET Features in Duwamish7.Web Legal Notices Unpublished work 2001 Microsoft Corporation All rights reserved Microsoft, JScript, Visual Basic, Visual Studio, and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries The names of actual companies and products mentioned herein may be the trademarks of their respective owners [...]... runat=server/> ASP. NET Sample 2/2 .aspx Execution Cycle Client Server IIS Request aspx file ASP. NET Runtime Parse aspx file Generate page class Instantiate controls Response Execution process Compilation, Microsoft when page is requested the first time intermediate... comment block % > ASP. NET Sample 1/2 Sub SubmitBtn_Click(Sender As Object, E As EventArgs) Message.Text = “Hi “ & Name.Text End Sub Name: ... to ASP. NET Concepts and Architecture ASP. NET Features Advanced ASP. NET ASP. NET and the Microsoft® NET Framework Contents Section 1: Overview Section 2: Architecture Microsoft NET. .. ASP. NET Configuration Section 3: ASP. NET Features State Management, Security, and Event Model Section 4: Advanced ASP. NET Web Forms and Web Services Working with Data ASP to ASP. NET. .. only when server is down ASP. NET Core Concepts Web development platform New programming model Web Client IIS ASP. NET Applications NET Framework Operating System ASP. NET Core Concepts Separate