T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 28 Bookstore Web Application Introducing Visual Web Developer 2008 Express and the.

Slides:



Advertisements
Similar presentations
1. XP 2 * The Web is a collection of files that reside on computers, called Web servers. * Web servers are connected to each other through the Internet.
Advertisements

XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
 2004 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
Web App Development with ASP.NET. Introduction In this chapter, we introduce web-app development with Microsoft’s ASP.NET technology. Web-based apps create.
1 Chapter 12 Working With Access 2000 on the Internet.
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
Web Servers How do our requests for resources on the Internet get handled? Can they be located anywhere? Global?
 2008 Pearson Education, Inc. All rights reserved Web Servers (IIS and Apache)
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
17 Web Servers (Apache and IIS)
1 Web Servers (IIS and Apache) Outline 9.1 Introduction 9.2 HTTP Request Types 9.3 System Architecture 9.4 Client-Side Scripting versus Server-Side Scripting.
1 Introduction to Web Development. Web Basics The Web consists of computers on the Internet connected to each other in a specific way Used in all levels.
ASP.Net, Web Forms and Web Controls 1 Outline Introduction Simple HTTP Transaction System Architecture Creating and Running a Simple Web Form Example Web.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 29.1 Multi-Tier Architecture 29.2 Web Servers.
1 Web Server Concepts Dr. Awad Khalil Computer Science Department AUC.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Introducing Web Controls Outline 29.1 Analyzing the.
Advanced Web Forms with Databases Programming Right from the Start with Visual Basic.NET 1/e 13.
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
Creating a Web Site to Gather Data and Conduct Research.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Introducing.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 2 Welcome Application Introducing the Visual Basic 2008 Express Edition IDE.
JavaScript: Functions © by Pearson Education, Inc. All Rights Reserved.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 21 - Web Servers (IIS, PWS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Examining.
Universiti Utara Malaysia Chapter 3 Introduction to ASP.NET 3.5.
The Internet and World Wide Web
 2004 Prentice Hall, Inc. All rights reserved. 1 Segment – 6 Web Server & database.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
ITEC 1001 Tutorial 1 Browser and Basics. Web browser software & Web pages The Web is a collection of files that reside on computers, called Web.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 32.1 Reviewing the Bookstore Application 32.2.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
1 Welcome to CSC 301 Web Programming Charles Frank.
1 After completing this lesson, you will be able to: Transfer your files to the Internet. Choose a method for posting your Web pages. Use Microsoft’s My.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Screen Scraping Application Introducing String Processing.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 31.1 Reviewing the Bookstore Application 31.2.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 2.1 Test-Driving the Welcome Application 2.2.
1 Web Servers (Chapter 21 – Pages( ) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System Architecture.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Application: Middle Tier Introducing Code-Behind Files, Session State.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2 Revised by Dr. T. Tran for CSI3140.
 2008 Pearson Education, Inc. All rights reserved. Chapter 17 Web Servers (Apache and IIS) Internet & World Wide Web How to Program, 5/e.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application: Client Tier Introducing Web Controls.
IT533 Lectures ASP.NET AJAX.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Address Book Application Introducing Database Programming.
Copyright © 2011 Pearson Addison-Wesley Web Servers and Projects Deployment Chapter 11 – Slide 1.
The Internet Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
Web Development Web Servers.
Data Virtualization Tutorial… CORS and CIS
Exploring Microsoft Office 2013 Word Comprehensive
IS333D: MULTI-TIER APPLICATION DEVELOPMENT
17 Web Servers (Apache and IIS)
17 Web Servers (Apache and IIS)
Tutorial 7 – Integrating Access With the Web and With Other Programs
Web Servers (IIS and Apache)
Programming with Microsoft Visual Basic 2008 Fourth Edition
Presentation transcript:

T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application Introducing Visual Web Developer 2008 Express and the ASP.NET Development Server

 2009 Pearson Education, Inc. All rights reserved. 2 Outline 28.1 Multitier Architecture 28.2 Web Servers 28.3 Visual Web Developer 2008 Express and the ASP.NET Development Server 28.4 Test-Driving the Bookstore Web Application

 2009 Pearson Education, Inc. All rights reserved. 3 In this tutorial you will learn: ■Understand the multitier architecture of data- driven web applications. ■Understand the process of requesting a resource from a web server and receiving a response from a web server. ■Use the ASP.NET Development Server that is built into Visual Web Developer 2008 Express to test web applications on your local computer. ■Use a web browser to interact with a web application. Objectives

Application Requirements  2009 Pearson Education, Inc. All rights reserved Test-Driving the Bookstore Web Application A bookstore employee receives s from customers asking for information pertaining to the books the store provides online. Responding to the numerous s can be a tedious and time-consuming task. The employee has asked you to create a web application that allows users to view information about various books online. This information includes the book’s cover image, author(s), ISBN number, edition number, copyright date and a brief description of the book.

 2009 Pearson Education, Inc. All rights reserved. 5 ■Web applications are multitier applications that divide functionality into separate functional groupings (Fig. 28.1). ■The information tier maintains data for the application. ■The middle tier controls interactions between application clients (such as web browsers) and application data in the information tier. ■The client tier is the application ’ s user interface, which is typically a web browser Multitier Architecture

 2009 Pearson Education, Inc. All rights reserved. 6 Figure 28.1 | Three-tier application model Multitier Architecture

 2009 Pearson Education, Inc. All rights reserved. 7 ■A web server responds to client requests by providing requested resources. ■A URL (Uniform Resource Locator) is as an address that directs a browser to a resource on the web. –A URL contains a host name or an IP address that identifies the web server. ■ Localhost is a special host name that identifies the local computer Web Servers

 2009 Pearson Education, Inc. All rights reserved. 8 ■The web browser interacts with a web server to retrieve and display the resource specified by the URL (Fig. 28.2). –The web browser uses the host name in the URL to locate the web server from which to request the resource. –The remainder of the URL after the host name specifies the path to the resource. –In the URL is the host name and ResourceCenters.html specifies the path to an HTML document on the web server Web Servers (Cont.)

 2009 Pearson Education, Inc. All rights reserved. 9 Figure 28.2 | Client interacting with a web server. Step 1: The request Web Servers (Cont.)

 2009 Pearson Education, Inc. All rights reserved. 10 ■In response, the server first sends a message to the client that includes a numeric code and a phrase describing the status of the request (Fig. 28.3). –If the request is successful, the server sends the requested resource. –Otherwise, the web browser displays a message indicating that the resource was not found Web Servers (Cont.)

 2009 Pearson Education, Inc. All rights reserved. 11 Figure 28.3 | Client interacting with a web server. Step 2: The response Web Servers (Cont.)

 2009 Pearson Education, Inc. All rights reserved. 12 ■Use Visual Web Developer 2008 Express to test-drive and build web applications. ■Visual Web Developer includes the ASP.NET Development Server. –The ASP.NET Development Server is designed for learning and testing purposes. –The ASP.NET Development Server cannot respond to requests from other computers. ■You can also publish your application to a Microsoft Internet Information Services (IIS) web server to receive requests from any client on the web Visual Web Developer 2008 Express and the ASP.NET Development Server

 2009 Pearson Education, Inc. All rights reserved. 13 ■Select File > Open Web Site... to display the Open Web Site dialog (Fig. 28.4). ■Click the File System button, and open the Bookstore application. Figure 28.4 | Opening the Bookstore web application. Test-Driving the Completed Bookstore Web Application Opening the completed ASP.NET web application

 2009 Pearson Education, Inc. All rights reserved. 14 ■To specify a start page, right click the Books.aspx file in the Solution Explorer and select Set As Start Page (Fig. 28.5). ■Files with the extension. aspx contain the web page’s GUI. –A web application can contain several ASPX pages. Test-Driving the Completed Bookstore Web Application (Cont.)

 2009 Pearson Education, Inc. All rights reserved. 15 Figure 28.5 | Setting Books.aspx as the web application’s start page. Test-Driving the Completed Bookstore Web Application (Cont.) Right click the Books.aspx page to display the pop-up menu Select this option to set the start page

 2009 Pearson Education, Inc. All rights reserved. 16 ■Run the application (Fig. 28.6). ■This ListBox is actually a web control. ■Web controls look similar to their Windows Forms counterparts. Test-Driving the Completed Bookstore Web Application (Cont.) Figure 28.6 | Page that displays a list of available books. Button control ListBox control containing available books Label controls

 2009 Pearson Education, Inc. All rights reserved. 17 ■The books displayed in the ListBox are retrieved from a database using a LINQ to SQL data source. ■Press the View Information Button without selecting a book. –The page responds by indicating that you must select a book first (Fig. 28.7). –Validation controls determine whether the data in another web control exists, is in the proper format, has the proper value or is within the proper range of values. Test-Driving the Completed Bookstore Web Application (Cont.)

 2009 Pearson Education, Inc. All rights reserved. 18 Figure 28.7 | Validation control showing an error message. Test-Driving the Completed Bookstore Web Application (Cont.) RequiredFieldValidator control

 2009 Pearson Education, Inc. All rights reserved. 19 Figure 28.8 | Displaying the selected book’s cover image. Test-Driving the Completed Bookstore Web Application (Cont.) Image control ■When you select a book an ItemSelected event occurs (Fig. 28.8).

 2009 Pearson Education, Inc. All rights reserved. 20 Test-Driving the Completed Bookstore Web Application (Cont.) ■Click the View Information Button to display the BookInformation.aspx page (Fig. 28.9). Figure 28.9 | Page that displays the selected book’s information. When clicked, this Button returns user to Books.aspx