© 2004 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Programming the Web Using ASP.Net Chapter 6: The User Interface (UI) Dave.

Slides:



Advertisements
Similar presentations
Chapter 6 Multiform Projects Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Advertisements

A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Tutorial 6 Forms Section A - Working with Forms in JavaScript.
Using Microsoft SharePoint to Develop Workflow and Business Process Automation Ted Perrotte National Practice Manager, Quilogy, Microsoft Office SharePoint.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
Using Data Active Server Pages Objectives In this chapter, you will: Learn about variables and constants Explore application and session variables Learn.
A First Program Using C#
© 2004 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Programming the Web Using ASP.Net Chapter 1: ASP.Net Dave Mercer.
© 2004 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Programming the Web Using ASP.Net Chapter 2: The ASP.Net Template Dave.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Microsoft Visual Basic 2005: Reloaded Second Edition
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
Developing Workflows with SharePoint Designer David Coe Application Development Consultant Microsoft Corporation.
McGraw-Hill/Irwin Programming in Visual Basic 6.0 © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Update Edition Chapter 6 Multiple Forms.
Microsoft Visual Basic 2008 CHAPTER 8 Using Procedures and Exception Handling.
Chapter 9 Programming with Web Forms Programming In Visual Basic.NET.
© Minder Chen, ASP.NET 2.0: Introduction - 1 ASP.NET 2.0 Minder Chen, Ph.D. Framework Base Class Library ADO.NET: Data & XML.
ASP.NET application. Roadmap ASP.NET file types Bin directory Application updates Simple application from start to finish using a virtual directory Behind.
Chapter 8: Writing Graphical User Interfaces Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
CHAPTER TWO INTRODUCTION TO VISUAL BASIC © Prepared By: Razif Razali 1.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Multiform Projects.
7 Chapter Seven Client-side Scripts. 7 Chapter Objectives Create HTML forms Learn about client-side scripting languages Create a client-side script using.
Module 1: Working with ASP.NET. Overview Introducing ASP.NET Creating Web Forms Adding ASP.NET Code to a Page Handling Page Events Discussion: ASP vs.
Chapter 2: Variables, Functions, Objects, and Events JavaScript - Introductory.
Programming with Java © 2002 The McGraw-Hill Companies, Inc. All rights reserved. 1 McGraw-Hill/Irwin Chapter 5 Creating Classes.
ASP.NET 4 Unleashed Chapter 1. .aspx page: contains C# script and HTML code including tags. Listing 1.1 FirstPage.aspx.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
CHAPTER THREE Representing Data: Constants and Variables.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
REEM ALMOTIRI Information Technology Department Majmaah University.
Creating an Interactive Web Page Lesson 2. Objectives.
Programming Right from the Start with Visual Basic .NET 1/e
Chapter 5 Validating Form Data with JavaScript
INF230 Basics in C# Programming
What is Microsoft Internet Explorer?
IS 350 Application Structure
Chapter 1: An Introduction to Visual Basic 2015
Chapter Topics 15.1 Graphical User Interfaces
Introduction to Visual Basic 2008 Programming
Chapter 8: Writing Graphical User Interfaces
Section 17.1 Section 17.2 Add an audio file using HTML
3.01 Apply Controls Associated With Visual Studio Form
4. Javascript Pemrograman Web I Program Studi Teknik Informatika
Understand Windows Forms Applications and Console-based Applications
Using Procedures and Exception Handling
Objectives Learn about Function procedures (functions), Sub procedures (subroutines), and modules Review and modify an existing subroutine in an event.
VISUAL BASIC.
Hands-on Introduction to Visual Basic .NET
CIS16 Application Development Programming with Visual Basic
CIS16 Application Development – Programming with Visual Basic
CIS16 Application Development and Programming using Visual Basic.net
CS285 Introduction - Visual Basic
ASP.NET 4.0 State Management Improvements – Deep Dive
Tonga Institute of Higher Education
Web Development Using ASP .NET
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
Caching.
Tutorial 11 Using and Writing Visual Basic for Applications Code
Presentation transcript:

© 2004 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Programming the Web Using ASP.Net Chapter 6: The User Interface (UI) Dave Mercer

6-2 Objectives 1.Explain the purpose and common features of the User Interface (UI) 2.Explain how a UI integrates with a business process 3.Design a UI for an ASP.Net Web application 4.Use the Page_Load event with Web forms 5.Use common ASP.Net Server controls on Web forms 6.Discuss the concept of scope for variables and objects 7.Build variables with different levels of scope 8.Explain how ASP.Net Web applications are configured 9.Find Web application configuration files 10.List configuration sections 11.Make configuration file changes

6-3 The User Interface (UI) The main objective of a user interface is to allow people to send input to the program, and for the program to communicate back. Programs have interfaces when there is a need for them to communicate with people, either one way or both ways. Programs that perform work-related or task-related functions in which there is human involvement are considered good if the user interface is user-friendly.

6-4 Basic UI Requirements For Windows-based applications, the UI consists of a series of screens on which buttons, text fields, drop-down lists, images, and so forth appear. The screens are called Windows, and there may be multiple windows open at any given time. The two main things people do in applications are make choices and perform work. The easier it is for users to make choices and perform work, the more they will probably like your application.

6-5 User Interface Design The elements displayed on screens as an application is used should be driven by the expectations of the intended users as much as by the requirements of the application. Other important considerations include: –User demographics –Control and menu layout –Business process –User interface development

6-6 What Is a “Good” User Interface? Whether an application’s user interface is considered “good” or “bad” is subjective. Your best bet of designing a good UI is to have lots of feedback from users, an understanding of the main factors affecting your UI design, and a clear idea of the actual business process the UI must support.

6-7 Sample Joint Application and Design Development Process 1.Gather all specifications for the application. 2.Interview actual users to understand the business process. 3.Mockup sample screens to verify that the application and UI will support the intended business process. 4.Build a rough application. 5.Enlist your graphic design group to build representative screen mockups for each type of screen your application will display. 6.Create a finished version of the app. 7.Produce and test a finished version of the application.

6-8 The Page_Load Event When a user first requests a page in your Web application, the server processes the page in preparation for sending it to the client. This is called page loading. At this point, all the controls on the page can be initialized. In your code-behind page, you will find an event handler (called Page_Load) in which you can place code that will run when the page is loaded.

6-9 Scope The concept of scope refers to how variables can be called and how long they live (their lifetime). A good analogy to scope is the concept of local and long distance dialing on the phone system. If you can call someone without adding an area code to the number you dial, they are in the same “scope” as you are.

6-10 Scope in VB.Net There are a number of levels of scope in VB.Net. You can set them by the location of your declaration statements with variable declaration keywords such as Dim or Private. These levels may be applied to variables, Sub procedures, and other structures in VB.Net. On a higher level, within VS.Net applications, it is also possible to expand the scope of variables for access by other projects in the same VS.Net application.

6-11 Levels of Scope in VB.Net Some variables in VB.Net are only accessible directly by name within their scope. Other variables can be called from outside their scope by adding qualifiers to their names. Scope is set by a combination of location and the declaration keyword used to create them. Scope levels in VB.Net are: –Block Scope –Procedure Scope –Module Scope –Namespace Scope

6-12 Caching ASP.Net Applications Caching refers to the practice of saving pages, objects, and so on after they are instantiated for the first time, so that subsequent calls for the same page or object can be answered more quickly because the object does not need to be created from scratch again. Caching is very useful when identical pages or objects are reused. Properly setting up caching is an important part of optimizing your ASP.Net Web applications.

6-13 Output Caching and Data Caching Caching of pages (and parts of pages) is called Output Caching, while caching of data is called Data Caching. –Output caching can be accomplished by adding OutputCache directive to your ASP.Net pages, or by using the Response.Cache properties and methods in your code. –Caching of data is accomplished by adding data items as name/value pairs to the Cache object.

6-14 Configuring ASP.Net Web Applications ASP.Net Web applications are configured by the developer with configuration files. These files are always named Web.config, except for the machine-wide configuration file named “machine.config”. Changes to these files cause your ASP.Net Web applications to run differently. You can set parameters for security, compilation, browser capabilities, and so forth in ASP.Net Web application configuration files.

6-15 The End