Advanced Web Forms with Databases Programming Right from the Start with Visual Basic.NET 1/e 13.

Slides:



Advertisements
Similar presentations
Welcome to Middleware Joseph Amrithraj
Advertisements

ICS 434 Advanced Database Systems
Web Forms and ASP.NET Programming Right from the Start with Visual Basic.NET 1/e 12.
CIS 451: ASP Sessions and Applications Dr. Ralph D. Westfall January, 2009.
SWE 316: Software Design and Architecture
Objectives In this session, you will learn to:
Technical Architectures
1 Chapter 12 Working With Access 2000 on the Internet.
Servlets and a little bit of Web Services Russell Beale.
ISYS 546 Client/Server Database Application Development.
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
DATABASE APPLICATION DEVELOPMENT SAK 3408 The Web and DBMS.
INTERNET DATABASE Chapter 9. u Basics of Internet, Web, HTTP, HTML, URLs. u Advantages and disadvantages of Web as a database platform. u Approaches for.
Web Servers How do our requests for resources on the Internet get handled? Can they be located anywhere? Global?
Apache Tomcat Server Typical html Request/Response cycle
12 Chapter 12 Client/Server Systems Hachim Haddouti.
ASP.NET 2.0 Chapter 6 Securing the ASP.NET Application.
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Web Application Architecture: multi-tier (2-tier, 3-tier) & mvc
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
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 Forms for the Web Tom Muck
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
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.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Cookies & Sessions.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
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.
CHAPTER 12 COOKIES AND SESSIONS. INTRO HTTP is a stateless technology Each page rendered by a browser is unrelated to other pages – even if they are from.
CSC 2720 Building Web Applications Cookies, URL-Rewriting, Hidden Fields and Session Management.
IT533 Lectures Session Management in ASP.NET. Session Tracking 2 Personalization Personalization makes it possible for e-businesses to communicate effectively.
Lecture 7 Interaction. Topics Implementing data flows An internet solution Transactions in MySQL 4-tier systems – business rule/presentation separation.
11/16/2012ISC329 Isabelle Bichindaritz1 Web Database Application Development.
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
Session 10: Managing State. Overview State Management Types of State Management Server-Side State Management Client-Side State Management The Global.asax.
 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.
Web Programming Language Week 7 Dr. Ken Cosh Security, Sessions & Cookies.
Chapter 8 Cookies And Security JavaScript, Third Edition.
 2004 Prentice Hall, Inc. All rights reserved. 1 Segment – 6 Web Server & database.
Chapter 6 Server-side Programming: Java Servlets
The Client/Server Database Environment Ployphan Sornsuwit KPRU Ref.
1 Welcome to CSC 301 Web Programming Charles Frank.
Personal Computer - Stand- Alone Database  Database (or files) reside on a PC - on the hard disk.  Applications run on the same PC and directly access.
1 Chapter 9 – Cookies, Sessions, FTP, and More spring into PHP 5 by Steven Holzner Slides were developed by Jack Davis College of Information Science.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Christopher M. Pascucci Basic Structural Concepts of.NET Managing State & Scope.
STATE MANAGEMENT.  Web Applications are based on stateless HTTP protocol which does not retain any information about user requests  The concept of state.
® IBM Software Group © 2007 IBM Corporation Best Practices for Session Management
Maintaining Application State MIS3502: Application Integration and Evaluation Paul Weinberg Presentation by David Schuff.
1 Web Servers (Chapter 21 – Pages( ) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System Architecture.
The Problem of State. We will look at… Sometimes web development is just plain weird! Internet / World Wide Web Aspects of their operation The role of.
1 State and Session Management HTTP is a stateless protocol – it has no memory of prior connections and cannot distinguish one request from another. The.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
The basics of knowing the difference CLIENT VS. SERVER.
PROGRAMMING IN VISUAL BASIC.NET CREATING YOUR FIRST WEB APPLICATION Bilal Munir Mughal 1 Chapter-3.
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
PHP: Further Skills 02 By Trevor Adams. Topics covered Persistence What is it? Why do we need it? Basic Persistence Hidden form fields Query strings Cookies.
E-commerce Architecture Ayşe Başar Bener. Client Server Architecture E-commerce is based on client/ server architecture –Client processes requesting service.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
The Client-Server Model
Web Development Web Servers.
The Client/Server Database Environment
CSC 480 Software Engineering
Introduction to Databases Transparencies
Lecture 1: Multi-tier Architecture Overview
Building ASP.NET Applications
Web Servers (IIS and Apache)
Presentation transcript:

Advanced Web Forms with Databases Programming Right from the Start with Visual Basic.NET 1/e 13

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 2 Objectives Understand the principles behind a three- tier architecture Know the advantages and disadvantages of client-side state management techniques Know the advantages and disadvantages of server-side state management techniques Develop an advanced Web Forms database application

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall Three-Tier Architecture Business applications involving databases are often divided into three layers: –The presentation layer – web browser –The application layer – IIS Web server –The data layer – database server

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall Three-Tier Architecture (cont.)

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 5 Presentation Layer The presentation layer runs on the user’s computer (the client) and provides the application interface. A fat client performs relatively significant processing, with less load on the middle tier. A thin client typically involves a web browser for displaying HTML with minimal processing.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 6 Application Layer The application layer provides various modules and services that are essential for the solution, including the processing of the business-based computing rules. The application layer provides a mediator between the presentation layer and the database layer.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 7 Data Layer The database layer is responsible for all database access required by the solution. This layer usually provides support for adding, deleting, updating, and retrieving information from the database. Connections to the database server eases database account maintenance and improves data security.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall State Management The HTTP protocol is stateless, which means that each request for a new web page is processed without any knowledge of previous pages requested. State management refers to techniques by which developers maintain the state of a web application across multiple page requests.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall Client-Side State Management Techniques The following are client-side state management options available to ASP.NET developers: –View state –Cookies –Query strings

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 10 View State A web page is re-created each round trip. ASP.NET provides view state which represents the state of the page when it was last processed on the server. The view state is visible in the HTML source and is a potential security issue.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 11 Query String A query string is information appended to the end of a page’s URL. Query strings typically begin with a “?”. Query strings are not secure because the query information is visible in the browser.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 12 Cookies A cookie is a small text file stored on the client machine. The browser attaches the cookie with each new HTTP request before sending it to the server, which can read the data and respond appropriately. The information stored in a cookie can be exposed so they are not the best means of handling sensitive information.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall Server-Side State Management Techniques The following are server-side state management options available to ASP.NET developers: –Application state –Session state –Database support

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 14 Application State An ASP.NET application is the sum of all files, pages, and code that resides on a server. When a web application runs, ASP.NET maintains information about the application in the application state.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 15 Application State (cont.) The application state allows developers to create application variables that can be set and read throughout the lifetime of the application. Application variables are global variables –Application(“AppVariableName”)

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 16 Session State A session is the period of time that a unique browser interacts with a web application. When a new session is created, ASP.NET maintains information about the session in the session state.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 17 Session State (cont.) The session state allows developers to create session variables that can be set and read throughout the lifetime of the session. Sessions and their variables expire after twenty minutes of inactivity. –Session(“SessionVariableName”)

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 18 Database Support Data stored in application variables and session variables will be lost if the application is interrupted; therefore, state information should be stored in a database. State information should be maintained for: –Security –Queries –Capacity –Data mining

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 19 Security Customer information stored in a database is an extra level removed from the presentation layer, making the data less available for malicious use.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 20 Queries Storing data in a database gives the application all the power and functionality of databases in general, including the ability to query for specific information.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 21 Capacity Databases are especially good at handling large amounts of information, and the data services can be split off to a data layer that resides on one or more data servers, allowing the web application to avoid a performance decrease.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 22 Data Mining An application could maintain information about times and dates of customer visits, pages visited, time per page, items ordered, and so on. This information could be mined for interesting relationships – information that could provide a strategic business advantage.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 23 Chapter Summary The presentation layer provides the client interface, the application layer usually implements the business logic of a solution, and the data storage layer maintains the database and tools for data access. Client-side state management is less secure than server-side state management.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 24 Chapter Summary (cont.) When a web application runs, ASP.NET maintains information about the application in the application state. Application variables are helpful for storing small amounts of infrequently changed global information that is used by many users.

Crews/Murphy – Programming Right from the Start with Visual Basic.NET 1/e – ©2004 Prentice Hall 25 Chapter Summary (cont.) Session state variables are helpful for storing small amounts of short-lived information that is specific to an individual session. Database support is good for storing large amounts of information or information that must survive application and session restarts.

Advanced Web Forms with Databases Programming Right from the Start with Visual Basic.NET 1/e 13