Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.

Slides:



Advertisements
Similar presentations
Lecture 6/2/12. Forms and PHP The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input When dealing with HTML forms.
Advertisements

 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.
Web Servers How do our requests for resources on the Internet get handled? Can they be located anywhere? Global?
Week 2 IBS 685. Static Page Architecture The user requests the page by typing a URL in a browser The Browser requests the page from the Web Server The.
Chapter 1: An Introduction To ASP.NET Web Programming
Introduction to Web Interface Technology (CSE2030)
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.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
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 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.
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.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
INTRODUCTION TO WEB DATABASE PROGRAMMING
9-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
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.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Comp2513 Forms and CGI Server Applications Daniel L. Silver, Ph.D.
Object-Oriented Application Development Using VB.NET 1 Chapter 12 Web Forms, HTML, and ASP.NET.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
Chapter 1: Introduction to Web
Chapter 16 The World Wide Web Chapter Goals Compare and contrast the Internet and the World Wide Web Describe general Web processing Describe several.
Server-side Scripting Powering the webs favourite services.
Lecturer: Ghadah Aldehim
IT533 Lectures Session Management in ASP.NET. Session Tracking 2 Personalization Personalization makes it possible for e-businesses to communicate effectively.
Chapter 6 The World Wide Web. Web Pages Each page is an interactive multimedia publication It can include: text, graphics, music and videos Pages are.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
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.
© Minder Chen, ASP.NET 2.0: Introduction - 1 ASP.NET 2.0 Minder Chen, Ph.D. Framework Base Class Library ADO.NET: Data & XML.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 23 How Web Host Servers Work.
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.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
1 CS 3870/CS 5870 Note04 Session Variables and Post Back.
Chapter 6 Server-side Programming: Java Servlets
1 Welcome to CSC 301 Web Programming Charles Frank.
Introduction to ASP.NET1. 2 Web applications in general Web applications are divided into two parts –The server part –The client part The server part.
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.
Overview Web Session 3 Matakuliah: Web Database Tahun: 2008.
Web Database Programming Week 7 Session Management & Authentication.
1 UNIT 13 The World Wide Web Lecturer: Kholood Baselm.
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
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.
ASP. What is ASP? ASP stands for Active Server Pages ASP is a Microsoft Technology ASP is a program that runs inside IIS IIS stands for Internet Information.
The Module Road Map Assignment 1 Road Map We will look at… Internet / World Wide Web Aspects of their operation The role of clients and servers ASPX.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
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.
JavaScript and Ajax (Internet Background) Week 1 Web site:
PostBack  When an initial request for a page (a Web Form) is received by ASP.NET, it locates and loads the requested Web Form (and if necessary compiles.
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
Session 11: Cookies, Sessions ans Security iNET Academy Open Source Web Development.
ASP.NET WEB Applications. ASP.NET  Web application framework developed by Microsoft  Build dynamic data driven web applications and web services  Subset.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Computing with C# and the .NET Framework
WWW and HTTP King Fahd University of Petroleum & Minerals
JavaScript and Ajax (Internet Background)
Session Variables and Post Back
CNIT 131 Internet Basics & Beginning HTML
PHP / MySQL Introduction
Presentation transcript:

Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction

Introduction  Web applications are a type of client/server application, which means that the functions of the applications are split between the client computer and server computer.  Client and servers are connected together via the Internet or other network and they communication using HTTP (Hypertext Transfer Protocol)  Web server stores the web applications that are accessed by the clients.  They can be configured to process ASPX, JSPX, PHP, etc…  Example web servers: Microsoft IIS & Apache  Most web applications use data stored in a database so it needs to implement a connection to a DBMS like SQLserver or Oracle.

Processing Static Web Pages  Static web pages are simple HTML pages that are stored on a web server. These pages don’t change in response to user input and the content is always the same.  A web browser requests a page from a web server by sending the server an HTTP request.  This request is initiated by typing in a URL, clicking a link, or begin redirected.  Includes the name of the HTML file being requested, the IP address of both the web browser and web server, etc…  A web server replies to a request with an HTTP response.  The response includes the HTML doc being requested.

Processing Dynamic Web Pages  Dynamic web pages are HTML pages that can change in some way each time the page is displayed. They are a web form with controls that allow the user to interact with the application.  Instead of being stored in the form of HTML, they are generated dynamically by the web application. 1.A web server receives a request for a dynamic page, it looks up the file extension of the requested file in a list to find out which application server should process this request.  If the extension is ASPX, the request is passed on to ASP.NET for processing.  If the extension is JSPX, the request is passed on to Tomcat for processing. 2.The application server receives the request and it runs the web form. The web form then generates an HTML document and returns it to the web server. 3.The web server then sends the HTML document back to the browser.

Dynamic Pages  After a dynamic page is displayed on the browser, the user can interact with it using its controls.  Some of the controls let the user start an HTTP request that post the page back to the server, which is called a postback.  The page is then processed over again using the data the user entered.  The entire process that starts with a browser requesting a page and ends with server returning the page is called a roundtrip.  There are two ways to a page can cause a postback to the server.  By using a submit button.  Through script. Sub checkForm() formName.submit() End Sub

ASPX Browser – Server Interaction

Christopher M. Pascucci Basic Structural Concepts of.NET Managing State & Scope

What is State  State refers to data maintained by an application for a single user.  An application must maintain a separate state for each user.  HTTP is a stateless protocol, which means it doesn’t maintain state between roundtrips.  Since HTTP is stateless the web applications must handle this.

How ASP.NET Maintains State  ViewState (Page)  Request  Application  Session  Cookies  Cache

How ASP.NET Maintains State  ViewState (Page)  Maintains the values of form control properties.  ViewState is implemented by default.  When a webform (aspx) is loaded, it can re-post to itself by means of a form submit.  A special state Boolean variable named IsPostBack is set to False when the page is initially loaded, and to True after its first postback.  Page state is maintained across postbacks to a single page by a single user.  Page state is sometimes called ViewState, because there is a ViewState object that contains property values for controls in the webform as well as the user created attribute/value collection; however, only simple data types and serializable objects can be stored in the ViewState object.  ViewState is maintained across postbacks. It stores the information (encrypted) in a hidden field in the form.

How ASP.NET Maintains State  Request  A Request object is created whenever a URL request is made from the browser to a web server.  Request state is maintained during the life of a single request object.  The program can access data from web form controls on the server-side by simply using Request(“FormControlName”) in the code.  Application  Application state is shared among all users (sessions) of an application.  It can be used to maintain values that apply to all users and you can add your own data/values to the application state object.  The Application is all pages contained in a given web site. The application starts when the first user sends a URL to the web server on which the web is located. It ends when the last client (user) of the web ends its session or when the application is stopped/restarted.

How ASP.NET Maintains State  Session  Session state is unique to each user of an application but maintained throughout their use of the application.  A Session is started when a user sends a URL to activate a given web site or Application.  The session can end in one of 3 ways: 1.If there is no request sent for a time called the Session Inactive Time. There is a default value set within the web server for this time, but it can be overridden by the session.Timeout property for a particular session object.session.Timeout 2.By the program using the session.Abandon methodsession.Abandon 3.If the client is terminated by closing the browser window, but Session Inactive Time will still have to elapse.

How ASP.NET Maintains State  Cookies  Cookie state is maintained in the client browser and can persist across page, session and application state.  It can even persist after the application terminates, for any predetermined time period. Its lifetime can be programmatically controlled.  Cache  Cache state has application scope but variable lifetime determined by the following events: Specific files or database tables being updated Another Cache attribute changes value Time expiration