1 / 32

Tutorial 28 - Bookstore Application: Web Applications Introducing Internet Information Services

Tutorial 28 - Bookstore Application: Web Applications Introducing Internet Information Services. Outline 28.1 Multi-Tier Architecture 28.2 Web Servers 28.3 Internet Information Services (IIS) 28.4 Test-Driving the Bookstore Application 28.5 Wrap-Up. Objectives.

Télécharger la présentation

Tutorial 28 - Bookstore Application: Web Applications Introducing Internet Information Services

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Tutorial 28 - BookstoreApplication:Web ApplicationsIntroducing Internet Information Services Outline 28.1 Multi-Tier Architecture28.2 Web Servers28.3 Internet Information Services (IIS)28.4 Test-Driving the Bookstore Application28.5 Wrap-Up

  2. Objectives • In this tutorial, you will learn to: • Use Internet Information Services to serve Web content to Web browser clients. • Request documents from a Web server. • Execute an ASP .NET Web application.

  3. 28.1 Multi-Tier Architecture

  4. 28.1 Multi-Tier Architecture • Multi, or n-tier applications • Information/data/bottom tier: Maintains data for the application • Middle tier: Controls interactions between application clients and application data in the information tier • Client/top tier: Is the application’s user interface

  5. 28.1 Multi-Tier Architecture Figure 28.1 Three-tier application model.

  6. 28.2 Web Servers • URL (Uniform Resource Locator) • Host name: Name of a computer where resources reside • IP address: Unique address used to locate a computer on the Internet • Domain • Fully qualified domain name (FQDN): Combines a host name with a top-level domain • IP (Internet Protocol) address • Domain name system (DNS) server: A computer that maintains a database of host names and their corresponding IP addresses • DNS lookup: The process of translating fully qualified domain names to IP addresses

  7. IIS’s root directory Place this folder in the wwwroot directory 28.3 Internet Information Services (IIS) Figure 28.2 Bookstore folder in IIS’s root directory. • C:\Inetpub\wwwroot is usually IIS’s root directory

  8. Toolbar Click to expand 28.3 Internet Information Services (IIS) Figure 28.3 Internet Information Services dialog. • To locate IIS, click the Administrative Tools icon in the Control Panel, and then the Internet Information Services icon.

  9. Click Start ItemButtonto start IIS Click to stop IIS Treetab Right pane Default Web site node; (Stopped) indicates that the IIS Web server is not running 28.3 Internet Information Services (IIS) Figure 28.4 Starting IIS on a computer running Windows 2000.

  10. Click Stop Item Button to stop IIS Click Start Item Button to start IIS Click to displayDefault Web Sitein Windows XP 28.3 Internet Information Services (IIS) Figure 28.5 Location of Default Web Site on a Windows XP computer. • To view the default Web site, expand your computer’s name node by clicking the plus box, and then click the Default Web Site node.

  11. Right click this folder ClickDefault Web Siteto display the Web site’s contents in the right pane Contents ofDefault Web Site 28.3 Internet Information Services (IIS) Figure 28.6 Bookstore folder in the Internet Information Services dialog.

  12. Directorytab Click to create an application 28.3 Internet Information Services (IIS) Figure 28.7 Properties of the Bookstore folder.

  13. Click theOKButtonto save settings 28.3 Internet Information Services (IIS) Figure 28.8 Bookstore Properties dialog after clicking Create in Fig. 28.7.

  14. Right click this directory Select this item 28.3 Internet Information Services (IIS) Figure 28.9 Selecting the Properties item.

  15. Databases Propertiesdialog Securitytab 28.3 Internet Information Services (IIS) Figure 28.10 Databases Properties dialog. • To change the security settings on the Databases folder, you must access the Security tab in the DatabasesProperties dialog box

  16. Securitytab (selected) Contents of this box may differ on your computer Click to add theASPNET user Ensure that thisCheckBoxis checked 28.3 Internet Information Services (IIS) Figure 28.11 Security tab for the Databases folder.

  17. Click this to select your computer name Make sure your computer name displays here Namebox Double click theASPNETuser Click to add user ASPNETuser has been added forANNEX1 28.3 Internet Information Services (IIS) Figure 28.12 Adding the ASPNET user.

  18. 28.3 Internet Information Services (IIS) • Giving ASPNET user write permission • Lock file: Written by any application that opens an Access database and indicates that the database is in use

  19. ASPNETuser added Permissionsbox Check theWriteCheckBoxto allowASPNETuser to have write access 28.3 Internet Information Services (IIS) Figure 28.13 Giving the ASPNET user write permission.

  20. wwwrootfolder (Windows XP) ClickFolder Options 28.3 Internet Information Services (IIS) Figure 28.14 Displaying the Folder Options dialog. • In the wwwroot folder, select Tools > Folder Options…

  21. Viewtab Advanced settingsbox Make sure thisCheckBoxis not checked 28.3 Internet Information Services (IIS) Figure 28.15 Verifying settings in the Folder Options dialog.

  22. Security tab TEST is the name of the computer running Windows XP 28.3 Internet Information Services (IIS) Figure 28.16 Databases Properties dialog Security tab in Windows XP.

  23. Make sure your computer name displays here Click this to specify your computer name Click to expand dialog for more options 28.3 Internet Information Services (IIS) Figure 28.17 Select Users or Groups dialog in Windows XP.

  24. ClickFind NowButton 28.3 Internet Information Services (IIS) Figure 28.18 Expanded Select Users or Groups dialog.

  25. Click theOKButton Select theASPNETuser 28.3 Internet Information Services (IIS) Figure 28.19 Adding the ASPNETuser to the Databases folder.

  26. ASPNETuser added 28.3 Internet Information Services (IIS) Figure 28.20 ASPNET name added to the Select Users or Groups dialog.

  27. ASPNETuser added Check theWrite CheckBoxto allow theASPNETuser to have write access 28.3 Internet Information Services (IIS) Figure 28.21 Giving the ASPNET user write permission.

  28. Right click the Books.aspx page Select this option to set the start page 28.4 Test-Driving the Bookstore Application Figure 28.22 Setting Books.aspx as the Web application’s start page.

  29. 28.4 Test-Driving the Bookstore Application • .aspx file (Web Forms/Web Form Pages/ASPX pages) • Contains Web page GUI • Web controls (ASP .NET server control) • Controls, such as TextBox and Button, that are used to customize ASPX pages • Appear similar to their Windows application counterparts

  30. Location ofBooks.aspxpage Labelcontrols ListBox control containing available books Buttoncontrol 28.4 Test-Driving the Bookstore Application Figure 28.23 Page that displays a list of available books.

  31. Location ofBookInformation.aspxpage TableWeb control When clicked, thisButtonreturns user toBooks.aspx 28.4 Test-Driving the Bookstore Application Figure 28.24 Page that displays the selected book’s information. (Image courtesy of Deitel & Associates, Inc.)

  32. Right clickBookstore SelectDelete 28.4 Test-Driving the Bookstore Application Figure 28.25 Deleting the Bookstore folder from IIS’s root folder.

More Related