Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.

Slides:



Advertisements
Similar presentations
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Advertisements

Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
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.
Integrating Access with the Web and with Other Programs.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
Web-Based Applications
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
1 Chapter 20 — Creating Web Projects Microsoft Visual Basic.NET, Introduction to Programming.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 8: WebForms — Web-based.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Chapter 9 Web Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
INTRODUCTION TO WEB DATABASE PROGRAMMING
9-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
McGraw-Hill © 2010 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 9 Web Applications.
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.
Object-Oriented Application Development Using VB.NET 1 Chapter 12 Web Forms, HTML, and ASP.NET.
1 Web-Enabled Decision Support Systems Introduction to ASP.NET Prof. Name Position (123) University Name.
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
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.
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
Creating a Web Site to Gather Data and Conduct Research.
Chapter 9 Programming with Web Forms Programming In Visual Basic.NET.
ASP.Net, Web Forms and Web Controls 1 Outline Web Controls Text and Graphics Controls AdRotator Control Validation Controls.
CSCI 6962: Server-side Design and Programming Introduction to Active Server Pages.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Programming with Visual Web Developer Chapter 9.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
C# Tutorial -1 ASP.NET Web Application with Visual Studio 2005.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
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.
 Whether using paper forms or forms on the web, forms are used for gathering information. User enter information into designated areas, or fields. Forms.
1 Chapter 12 – Web Applications 12.1 Programming for the Web, Part I 12.2 Programming for the Web, Part II 12.3 Using Databases in Web Programs.
Database Handling, Sessions, and AJAX. Post Back ASP.NET Functionality The IsPostBack method in ASP.NET is similar to the BlackBerry.refresh method –IsPostBack.
7 Chapter Seven Client-side Scripts. 7 Chapter Objectives Create HTML forms Learn about client-side scripting languages Create a client-side script using.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview How to create a first ASP.NET application.
1 Building FORMS In When a visitor enters information into a web form displayed in a web browser and clicks the submit button, the information is sent.
Week Developing Web Applications 12. Programming for the Web A Web Application Runs on a Web Server and Presents Its Content to the User Across a Network,
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
IT533 Lectures ASP.NET AJAX.
Web Development in Microsoft Visual Studio 2013 / 2015.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 8 1 Microsoft Office Access 2003 Tutorial 8 – Integrating Access with the.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Beginning ASP.NET in C# and VB Chapter 9
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
Murach's ASP.NET 4.5/C#, C2© 2013, Mike Murach & Associates, Inc.Slide 1.
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
Web Forms, HTML, and ASP.NET
Unit 27 - Web Server Scripting
Web Development in Microsoft Visual Studio 2013
PART 2.
Chapter 9 Programming with Web Forms
Programming with Microsoft Visual Basic 2008 Fourth Edition
Presentation transcript:

Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays the web pages in a browser. –e.g., IE, Firefox, Chrome, Safari –web pages are Web Forms in VB.NET

Web Documents (Pages) Documents (web pages) consist of HTML, CSS, Java applets, Javascript. Web page is generally stateless does not store any information about its contents from one invocation to the next Techniques for working around stateless issue: cookies stored on local machine send state information to server as part of the page's address, uniform resource locator (URL)

ASP.NET ASP.NET is a Web programming technology from Microsoft. ASP.NET provides libraries, controls, and programming support for: Interacting with the user Maintaining state, rendering controls Displaying data, and generating appropriate HTML When using Web Forms in VB.NET you are using ASP.NET. 2 files are generated:. aspx extension contains HTML.aspx.vb extension hasVB code (not compiled into.exe)

Create a New Project in Visual Web Developer Under Visual Basic/Web, select ASP.NET Empty Web Application When project opens, connection to a Web Server is established.

IDE for Visual Web Developer with New Web Project

Viewing the HTML Code Design and Sources tabs at bottom of the form in the Designer allow you to switch between the HTML code and VB code. Click on the Source tab to view the static HTML code.

ToolBox Controls VS Designer adds a small green arrow in the upper-left corner of server controls. ASP Server Control Client-side HTML Control Several types of controls are available for Web Forms and can be mixed on a single form. Very often used are the Standard (ASP.NET server controls) — provided by ASP.NET and the.NET framework.

Using Tables for Layout ASP.NET generates appropriate HTML to render the page in various browsers but cannot be aware of the screen size, resolution, or window size on the target machine. Table is an HTML control, requiring no server-side programming, and provides good layout capabilities. Add controls and text to the table cells to align the columns.

Entering Controls or Text in a Table Add a label and assign it a property for ID to be able to refer to the text in a cell at run time. –OR— Type text directly into the cell.

Including Images on Web Pages Use the Image control to add graphics to a Web page. Concept is similar to the PictureBox control on Windows Forms but the graphic file is connected differently due to the nature of the Web applications. Each Image control has an ImageUrl property that specifies the location of the graphic file. To place an image on a Web page, the graphic should first be copied into the Web site folder. Image controls can be added to a cell in a table or directly on a Web page.

Navigating Web Pages Add a HyperLink control to allow the user to navigate to another site or page. Enter a Text property for the text to display for the user. Enter a NavigateUrl property to specify the URL to which to navigate; the Select URL dialog box displays. Select the page from a list. To go to another website, type the Web address as the NavigateUrl property value.

Adding a Second Web Page To add a new web form to a web site, select Web Form in the Add New Item dialog box. Make sure to choose Visual Basic for the language and check Place code in separate file.

Using the Validator Controls ASP.NET provides several controls that can automatically validate input data. Examples: RangeValidator control verifies user input is within a minimum and maximum value. RequiredFieldValidator control verifies the user input is not empty. First add a validator control then attach it to an input control and set the error message (done by setting properties). At run time, when data is input, the error message displays if the validation rule is violated. Validator controls run on the client side.

Maintaining the State of a Web Page When an ASP.NET application loads, the Page-Load event occurs—the page is reloaded for each “round-trip” to the server. This is known as a postback. Postbacks occur many times in a Web application and you lose the value of controls upon each reload. Use module-level variables in controls to hold their values during postback. (Do not use local variables!) Set EnableViewState to True (default), so the control contents reappear for each postback. The page’s IsPostBack property is set to False for the initial page load and to True for all page loads after the first. Check for a True value to make sure that actions are only performed on postbacks.

A Couple of Final Facts By default, web projects are tested in Microsoft Internet Explorer. To test in another browser on your machine: Right-click on the project name Select Browse With To copy a web project you’ve created, simply copy the Solution folder to the desired location (just as for Windows projects).

A Complete Example Exercise 9.3, page 395: – Create a web page to enter customer information like name, , username, password. – Format the web page using a table. – Validate the fields. – When the user clicks Submit, display a second confirmation page.