Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic 2010 2 nd Edition.

Slides:



Advertisements
Similar presentations
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
Advertisements

© by Pearson Education, Inc. All Rights Reserved.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
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.
1 CA201 Word Application Creating Document for the Web Week # 9 By Tariq Ibn Aziz Dammam Community college.
1 Computing for Todays Lecture 22 Yumei Huo Fall 2006.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Microsoft Office XP Illustrated Introductory, Enhanced Office Applications with Internet Explorer Integrating.
XP New Perspectives on Microsoft Access 2002 Tutorial 71 Microsoft Access 2002 Tutorial 7 – Integrating Access With the Web and With Other Programs.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
© 2011 Delmar, Cengage Learning Chapter 2 Developing a Web Page.
 Using Microsoft Expression Web you can: › Create Web pages and Web sites › Set what you site will look like as you design it › Add text, images, multimedia.
Visual Basic Chapter 1 Mr. Wangler.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
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.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Web Technologies Website Development Trade & Industrial Education
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: –The head content –The body Creating Head Content and Setting Page Properties.
IE 411/511: Visual Programming for Industrial Applications
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Website Development with Dreamweaver
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
Microsoft Visual Basic 2008 CHAPTER SEVEN Creating Web Applications.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Chapter 1 Creating a Dreamweaver Web Page and Local Site
CHAPTER TWO INTRODUCTION TO VISUAL BASIC © Prepared By: Razif Razali 1.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
4 HTML Basics Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application: Client Tier Introducing Web Controls.
Creating and Editing a Web Page
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Creating a Web Site Creating a new Web site Defining and using folders Creating and editing Web pages Viewing pages in a Web browser.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Microsoft Expression Web - Illustrated Unit A: Getting Started With Microsoft Expression Web.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
 2007 Pearson Education, Inc. All rights reserved Introduction to the Visual Basic Express 2005 IDE.
XP Creating Web Pages with Microsoft Office
Section 10.1 Define scripting
Dive Into® Visual Basic 2010 Express
Chapter 2: The Visual Studio .NET Development Environment
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Chapter 2 Developing a Web Page.
Learning the Basics – Lesson 1
Chapter 2 – Introduction to the Visual Studio .NET IDE
Section 17.1 Section 17.2 Add an audio file using HTML
Programming with Microsoft Visual Basic 2008 Fourth Edition
Presentation transcript:

Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition

Objectives Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 2 After studying Chapter 27, you should be able to: Define basic Web terminology Create a Web application Add Web pages to an application Customize a Web page Add static text to a Web page Format a Web page’s static text

Objectives (cont’d.) Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 3 View a Web page in full screen view Add controls (link button, image, text box, label, and button) to a Web page Start, close, and open a Web application Reposition a control on a Web page Code a control on a Web page Use a RequiredFieldValidator control

Web Applications Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 4 World Wide Web (the Web) World’s largest computer network Consists of Web pages stored on Web servers Web server Computer that contains special software to “serve up” Web pages Client computer Requests information from a Web server Browser Program used to request and view Web information

Web Applications (cont’d.) Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 5 Static Web page Document displays information to viewer Not interactive Links allow viewers to “jump” between Web pages Examples in Figures 27-1 and 27-2 on next slides

Web Applications (cont’d.) Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 6 Figure 27-1 Example of a static Web page

Web Applications (cont’d.) Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 7 Figure 27-2 Another example of a static Web page

Web Applications (cont’d.) Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 8 Dynamic Web pages Interactive Accept information from the user Retrieve information for the user Example shown in Figure 27-3 on next slide

Web Applications (cont’d.) Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 9 Figure 27-3 Example of a dynamic Web page

Web Applications (cont’d.) Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 10 ASP Active server page Technology used to create Web applications in this chapter HTML Hypertext Markup Language All ASP pages contain HTML tags

Creating a Web Application Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 11 Create Web application Use Visual Web Developer 2010 Available as stand-alone Or as part of Visual Studio 2010 Configure Visual Web Developer 2010 Express Follow instructions on pages Begin creating the Cottage Toy Store Web application Follow instructions on pages

Adding the Default.aspx Web Page to the Application Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 12 After creating an empty Web application: Add a Web page to it First added Web page usually named Default.aspx Follow instructions on pages To add the Default.aspx page

Customizing a Web Page Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 13 Properties window Used to customize a Web page Change the title and background color Follow instructions on page 504

Adding Static Text to a Web Page Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 14 Static text Text that cannot be changed by a user Added by typing text on page itself Or by using a label control Drag from the Toolbox window Add static text to the Web page Follow instructions on page 504 Formatting static text Use Format menu or Formatting toolbar

Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 15 Figure Formatting toolbar Figure Result of clicking the Alignment button

Viewing a Web Page in Full Screen View Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 16 View page in full screen view: To see how it will appear to the user Use Full Screen option on the View menu Click Full Screen button again to return to standard view

Adding Another Web Page to the Application Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 17 Add a second Web page to the Cottage Toy Store application Follow instructions on pages

Adding a Link Button Control to a Web Page Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 18 Controls added to a Web page: Using tools provided in Toolbox window Add a link button control to both Web pages Follow instructions on pages

Adding a Link Button Control to a Web Page (cont’d.) Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 19 Figure Link button control added to the Default.aspx Web page

Starting a Web Application Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 20 Start a Web application by: Pressing Ctrl+F5 Clicking the Start Without Debugging option On the Debug menu May need to add this option to the menu Start the Cottage Toy Store Web application Follow instructions on pages

Adding an Image to a Web Page Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 21 Add Small_house.jpg to the Default.aspx Web page Follow instructions on pages Be sure to understand copyright policies when choosing images to use Figure Image control added to the Default.aspx Web page

Closing and Opening an Existing Web Application Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 22 Use the File menu: To close and open an existing Web application Close and then open the Cottage Toy Store application Follow instructions on page 512

Repositioning a Control on a Web Page Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 23 Move image and link button controls: To different locations on Default.aspx Web page Follow instructions on pages

Repositioning a Control on a Web Page (cont’d.) Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 24 Figure Modified Default.aspx Web page

Dynamic Web Pages Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 25 Contain controls with which user can interact Contain code that tells controls how to respond to user’s actions Create the Currency Converter Web application First plan the page’s layout Example sketch shown in Figure on next slide Follow instructions on pages

Dynamic Web Pages (cont’d.) Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 26 Figure Sketch of the Currency Converter application’s Web page

Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 27 Figure Position dialog box

Coding the Submit Button’s Click Event Procedure Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 28 Submit button Converts American dollars to Mexican pesos Displays result on Web page Code Submit button’s Click event procedure Follow instructions on pages

Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 29 Figure btnSubmit control’s Click event procedure Figure Code Editor and Solution Explorer windows

Validating User Input Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 30 Validator tools Purpose: To validate user input Provided in the Validation section of the toolbox Figure lists characteristics of each validator tool

Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 31 Figure Validator tools

Summary Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 32 Web pages Stored on Web servers Can be either static or dynamic Client computer uses browser: To request Web page from Web server To view the Web page Use New Web Site option to create an empty Web application Add New Item adds a Web page to the application

Summary (cont’d.) Clearly Visual Basic: Programming with Visual Basic 2010, 2 nd Edition 33 DOCUMENT object’s Title property Used to add a title to a Web page Static text Can be added by typing or through a label control LinkButton tool Used to add a link button control to a Web page To wrap text around an image control: Use position option on the Format menu Several validator tools available to validate user input