the module road map assignment 1 road map we will look at… internet / world wide web aspects of...
TRANSCRIPT
![Page 1: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/1.jpg)
![Page 2: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/2.jpg)
The Module Road Map
![Page 3: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/3.jpg)
Assignment 1 Road Map
![Page 4: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/4.jpg)
We will look at…Internet / World Wide Web
Aspects of their operationThe role of clients and servers
ASPX Page (Web Form)How it is passed between browser and serverThe structure of the pageHow it provides functionality to the browser
![Page 5: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/5.jpg)
The Internet and TCP/IP
Network of networks Defence research in the 60sTCP/IP (Transmission Control Protocol /
Internet Protocol)Allows programs on computers to talk to
each other
![Page 6: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/6.jpg)
The IP AddressUniquely identifies each machine32 bit number made up of four 8 bit numbers Visit http://209.85.227.105/
Assigned in blocks
www.dmu.ac.uk 146.227.160.79www.cse.dmu.ac.uk 146.227.57.2G677 (my server) 146.227.53.94
![Page 7: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/7.jpg)
Name Servershttp://209.85.227.105/ not obviously www.google.com
![Page 8: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/8.jpg)
PortsTCP/IP allows programs on machines to
communicateIP address identifies machineport number identifies programThere is no law that states a specific port must be
used for a service however there are certain ports that traditionally provide services.
80 HTTP (web pages)21 FTP (File transfers)119 NNTP (Network News Transfer Protocol)443 HTTPS (secure web pages)
![Page 9: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/9.jpg)
The World Wide WebUp until about 1989 the Internet existed
quite happily without the World Wide Web
File Transfer Protocol (FTP) TelnetUsenet
World Wide Web - Internet
![Page 10: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/10.jpg)
The Client Server Model
![Page 11: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/11.jpg)
Server v Client Side CodeCode may be added at either end of the process
Client side code runs at browserAction Script (Flash)JavaScript VBScript
Server Side CodeASP.NET (C #)PHPJSP
![Page 12: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/12.jpg)
Telnet
![Page 13: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/13.jpg)
New Process to Consider
![Page 14: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/14.jpg)
XHTML Forms GET and POSTSimple web form (linked from the module web site)
![Page 15: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/15.jpg)
XHTML Form Code
Change POST to GET
http://g519-md.ad.cse.dmu.ac.uk/Request/?txtFirstName=Matthew&txtLastName=Dean&Submit1=submit
![Page 16: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/16.jpg)
Active Server Pages (ASPX)Events User or System Generated
User triggered events
Click Triggered when a user presses a button
Selected Index Changed Activated when the user selects an item off a drop down list
System generated
Load Runs when the ASPX page is loaded by the serverTypically used to initialise the web form
Unload Runs when the ASPX page is unloaded from the serverTypically used to save data
Handled by event procedures
![Page 17: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/17.jpg)
Anatomy of an ASPX Page
![Page 18: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/18.jpg)
Code may be Embedded in the Web Form
![Page 19: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/19.jpg)
Active Server Controls
Note the tag <asp
![Page 20: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/20.jpg)
Visual Designer
![Page 21: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/21.jpg)
Post Back = FalsePost back is false on the first HTTP request
The browser sends the request to the serverThe server begins processing the pageThe server executes any code associated with
the page load eventThe server runs any code in the page unload
eventAll asp controls are processed by the server and
changed into suitable XHTML controlsThis produces XHTML built from the ASPX pageThe XHTML is sent to the requesting browser
![Page 22: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/22.jpg)
What the Browser Gets…Not the ASPX page but XHTML
![Page 23: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/23.jpg)
Post Back = True
The browser sends the request to the serverThe server begins processing the ASPX pageThe server executes any code associated with the
page load eventThe server executes any code associated with any
events triggered (in this case the click event of the Go button)
The server runs any code in the page unload eventAll asp controls are processed by the server and
changed into suitable XHTML controls (They will be updated with any data from the XHTML version of the form)
This produces XHTML built from the ASPX pageThe XHTML is sent back to the requesting browser
![Page 24: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/24.jpg)
Visual Studio Development ServerVisual Studio starts the development server
VS then launches the browser with the URL
http://localhost:49527/delme1/Default.aspx
Visual Studio makes your computer “talk to itself”
![Page 25: 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](https://reader035.vdocuments.us/reader035/viewer/2022081511/56649ed15503460f94be0ad8/html5/thumbnails/25.jpg)
The Future?AJAXAppleWindows 8HTML 5 – Java ScriptFlash