Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 238 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
238
Dung lượng
7,86 MB
Nội dung
Chapter Introduction to Web Applications and ASP.NET Objectives Describe the following: • Web application • Web application development cycle Explain Active Server Pages Explain the features of ASP.NET ASP.NET and Webforms / Chapter 1/ Slide of 22 Client/Server and Web Applications Client Client Client (Browser) Database Client (Browser) ASP.NET and Webforms / Chapter 1/ Slide of 22 Web-enabled Application Architecture Proxy Server Client (Browser) Database Server Server-based programs ASP CGI ISAPI Internet Web server Certificate Server HTTP Other servers FTP SMTP Exchange Server ASP.NET and Webforms / Chapter 1/ Slide of 22 HTTP at Work Page Request Client (Browser) Send me “Introduction to Hypertext” Introduction to Hypertext ASP.NET and Webforms / Chapter 1/ Slide of 22 Network Interface and HTTP Service Internet Network Interface Transport Layer and Internet Layer (TCP / IP) Windows Sockets HTTP FTP ASP.NET and Webforms / Chapter 1/ Slide of 22 Accessing Database Information Client (Browser) Internet Web server HTTP ODBC Database Server ASP.NET and Webforms / Chapter 1/ Slide of 22 Web Application Development Cycle Planning the Web application Designing the application Constructing and testing the components of the application Going live Production and maintenance ASP.NET and Webforms / Chapter 1/ Slide of 22 Web Application Development Process A Planning phase No Construction and testing Functional specifications complete? Yes Design phase No Complete? Yes Going live No Design complete? Yes A Production and maintenance ASP.NET and Webforms / Chapter 1/ Slide of 22 Scripting Web Server: CGI Scripts Processing Web Server: CGI Scripts Processing Data entry Data entry Processing Web client: Browser Web client: Browser JavaScript VBScript ASP.NET and Webforms / Chapter 1/ Slide 10 of 22 Types of Configuration Files Machine.config Settings are applied to all applications residing on the server XML based file Build number of net CLR Stored in C:\WinNT\Microsoft.NET\Framework\v.1.xxxx\ config Only one file per ASP.net installation on a machine Web.config Settings are applied to single application residing on the server XML based file One file per each directory of the Web application ASP.NET and Webforms /Chapter 14/Slide of 18 Types of Configuration Files (Contd.) One per machine Web Applications One per application Override settings of machine.config ASP.NET and Webforms /Chapter 14/Slide of 18 Typical machine.config File Configuration section Handler Declaration Area Configuration section Settings Area ASP.NET and Webforms /Chapter 14/Slide of 18 Page Configuration Setting Response to the client can be buffered View state can be set ASP.NET and Webforms /Chapter 14/Slide of 18 Application Setting Configuration settings in form of key-value pair The settings are read in ASP.NET page using System.Configuration; … String GetQuery = ConfigurationSettings.AppSettings[“MyQuery”]; ASP.NET and Webforms /Chapter 14/Slide of 18 Compilation Setting Specifies whether to compile retail binaries or debug binaries Provides a semicolon-separated list of language names to use in dynamic compilation of files ASP.NET and Webforms /Chapter 14/Slide 10 of 18 Sub-tags of Compilation tag sub-tag add remove clear ASP.NET and Webforms /Chapter 14/Slide 11 of 18 Sub-tags of Compilation tag (Contd.) sub-tag sub-tag ASP.NET and Webforms /Chapter 14/Slide 12 of 18 customErrors Setting ASP.NET and Webforms /Chapter 14/Slide 13 of 18 Authentication and Authorization ASP.NET and Webforms /Chapter 14/Slide 14 of 18 Authentication and Authorization (Contd.) Authentication Type Description Windows Windows authentication as default authentication mode Used for any form of IIS authentication Forms ASP.NET forms-based uthentication as default authentication mode Passport Microsoft Passport authentication as default authentication mode None No authentication Used by anonymous users and applications providing own authentication ASP.NET and Webforms /Chapter 14/Slide 15 of 18 Attributes of tag Attribute Option Description Name None Cookie name used for authentication LoginUrl None Login page URL The client is redirected to this URL if no authentication cookie is present protection ALL Application uses both data validation and encryption to protect the cookie None Both encryption and validation are disabled timeout The amount of time in minutes, after which the authentication cookie expires Default value is 30 path Path for cookies issued by the application Default value is a backslash (/) ASP.NET and Webforms /Chapter 14/Slide 16 of 18 Forms Authentication ASP.NET and Webforms /Chapter 14/Slide 17 of 18 Authorization