Tài liệu Programming with ASP.NET pptx

30 407 0
Tài liệu Programming with ASP.NET pptx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

aspnet Programming with ASP.NET Programming with ASP.NET Hà Đồng Hưng Lập trình với ASP.NET 2 Objectives • ASP.NET and the Microsoft® .NET Framework – “Looking back .“ – Concepts and Architecture • ASP.NET Application – Models • Using Visual Studio .NET – Visual demos Lập trình với ASP.NET 3 Objectives • ASP.NET and the Microsoft® .NET Framework – “Looking back .“ – Concepts and Architecture • ASP.NET Application – Models • Using Visual Studio .NET – Visual demos Lập trình với ASP.NET 4 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 do 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 Lập trình với ASP.NET 5 What’s Wrong with That? • Mixes layout (HTML) and logic (scripting code) • Interpreting ASP code leads to performance loss • Uses scripting languages that are not strongly typed – Microsoft JScript® – Microsoft Visual Basic® Scripting Edition (VBScript) • Browser compatibility • No real state management – No state sharing across Web farms – State is lost when IIS fails • Update files only when server is down Lập trình với ASP.NET 6 ASP.NET Core Concepts • Separate layout and business logic • Use 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! Lập trình với ASP.NET 7 Architecture • The .NET Framework Architecture • Web Application Model • Class Hierarchy • Advantages Lập trình với ASP.NET 8 Microsoft .NET Framework System Services Common Language Runtime ASP.NET Web Forms Web Services Windows Forms Services Framework Base Data Debug . The .NET Framework Architecture Lập trình với ASP.NET 9 Web Application Model Web Client Operating System ASP.NET Applications IIS .NET Framework Lập trình với ASP.NET 10 Class Hierarchy 1/2 • Namespaces – Hierarchically structured – Dot-syntax, grouping classes logically – Abstract base classes and class implementations • You are free to implement your own – Sample: System.Web.UI.WebControls.Button namespace class name – How to use namespaces: • Sample: using MyAlias = System.Web.UI.WebControls [...]... updates of deployed Web app • Access to the NET Framework • Many programming languages • Server controls • Built-in security • Integration with Microsoft ADO.NET • Full support for XML, CSS • Built-in features for caching, cultures… Objectives • ASP.NET and the Microsoft® NET Framework – “Looking back “ – Concepts and Architecture • ASP.NET Application – Models • Using Visual Studio NET – Visual demos... configuration file, Style sheets, IIS settings Parts of ASP.NET App • In a completed Web application, the executable portion of the Web form is stored in an executable (.dll) that runs on the server under the control of IIS Application cycle Role of NET Framework Objectives • ASP.NET and the Microsoft® NET Framework – “Looking back “ – Concepts and Architecture • ASP.NET Application – Models • Using Visual Studio... Tool windows: display the components you use to create your application • Controls • database connections • Classes • properties The Visual Studio NET programming environment The Visual Studio NET programming environment • Toolbox The Visual Studio NET programming environment • Solution Explorer Editing Web documents • Editing HTML • Editing code (VB.NET, C# …) Running a Project • Toolbar: choosing Start... Architecture • ASP.NET Application – Models • Using Visual Studio NET – Visual demos The Visual Studio NET programming environment • Start page – contains various panes to make information easier to find and to help simplify some common tasks, such as opening a recent file The Visual Studio NET programming environment • Visual Studio NET Windows: two types of windows: – Document windows: display the... composing those pages using executable code and static resources on the server – Web applications can provide dynamic content based on dynamic server resources, such as a database, and based on user inputs, – ASP.NET Web applications are made up of content, an executable, and configuration files Summary • The content of a Web application is presented through Web forms – use HTML components like conventional... pages and HTML pages: – visually by using the Document window' s Design mode; edit them as text by using the Document window' s HTML mode • Set the Help language filter – view code samples in a single programming language or in multiple languages . aspnet Programming with ASP. NET Programming with ASP. NET Hà Đồng Hưng Lập trình với ASP. NET 2 Objectives • ASP. NET and the Microsoft® .NET Framework. với ASP. NET 16 Application cycle Lập trình với ASP. NET 17 Role of .NET Framework Lập trình với ASP. NET 18 Objectives • ASP. NET and the Microsoft® .NET

Ngày đăng: 11/12/2013, 17:15

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan