Server Object Server Object. The Server object represents a programmable interface to the HTTP service that provides a mechanism to administer and control.

Slides:



Advertisements
Similar presentations
Chapter 6 Server-side Programming: Java Servlets
Advertisements

PHP Form and File Handling
Maintaining State Between the Client and Server Internet Programming Using VBScript and JavaScript 9.
Session 1 & 2BBK P1 Module5-May-2007 : [‹#›] PHP: The Basics.
CGI & HTML forms CGI Common Gateway Interface  A web server is only a pipe between user-agents  and content – it does not generate content.
Session 13 Active Server Pages (ASP) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
1 Chapter 12 Working With Access 2000 on the Internet.
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
JavaScript Forms Form Validation Cookies CGI Programs.
The ADO Data Control. Universal Data Access Open Database Connectivity (ODBC) –standard for accessing data in databases OLE-DB –allows access to data.
How the web works: HTTP and CGI explained
1 Active Server Pages Active Server Pages (ASPs) are Web pages ASP = server-side scripts + HTML The appearance of an Active Server Page depends on who.
Multiple Tiers in Action
Active Server Pages Chapter 1. Introduction Understand how browsers and servers interacted when the Web was young Understand what early Internet and intranet.
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
Using Entities & Creating Forms Jill R. Sommer Institute for Applied Linguistics Kent State University.
COMPUTER TERMS PART 1. COOKIE A cookie is a small amount of data generated by a website and saved by your web browser. Its purpose is to remember information.
Web Integration to an Appx Backend Server. Unix web servers + CGI Win2K web servers + ASP Win2K web servers + ODBC Processing requests Generating HTML.
Overview of JSP Technology. The need of JSP With servlets, it is easy to – Read form data – Read HTTP request headers – Set HTTP status codes and response.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Beyond DHTML So far we have seen and used: CGI programs (using Perl ) and SSI on server side Java Script, VB Script, CSS and DOM on client side. For some.
1 Web Server Concepts Dr. Awad Khalil Computer Science Department AUC.
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.
Principles of Computer Security: CompTIA Security + ® and Beyond, Third Edition © 2012 Principles of Computer Security: CompTIA Security+ ® and Beyond,
1998 PI System Users’ Conference PI on the Web: A Primer for PI Users Omicron Consulting 1998 PI System Users’ Conference.
Active Server Pages (ASP) 1. 2 Introduction Active Server Pages (ASP) –Server-side text file –Processed in response to client request –Pages are processed.
ES Module 5 Uniform Resource Locators, Hypertext Transfer Protocol, & Common Gateway Interface.
Web Page Design I Retest Terms Review. 1. Web pages are created using a language known as ___________. The coding of this language must follow specific.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Elements of ASP Documents Adapted from MCDN Web Workshop ( and Webmonkey’s Introduction to Active.
 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.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Tutorial 10 by Sam ine1020 Introduction to Internet Engineering 1 Database & Server-side Scripting Tutorial 10.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
Chapter 8 Cookies And Security JavaScript, Third Edition.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
IS 4506 Interactive Clients & Servers.  Overview Fat Client versus Fat Server Spectrum of Web content formats Active Server Pages Active Server Page.
Website Development with PHP and MySQL Saving Data.
1 Welcome to CSC 301 Web Programming Charles Frank.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
XP Tutorial 8 Adding Interactivity with ActionScript.
Server-side Programming The combination of –HTML –JavaScript –DOM is sometimes referred to as Dynamic HTML (DHTML) Web pages that include scripting are.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
1 Introduction to Servlets. Topics Web Applications and the Java Server. HTTP protocol. Servlets 2.
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
1 HTML forms (cont.)
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
ASP (COMPONENTS) Active Server Pages (cont..) 1. global.asa file The Global.asa file is an optional file that can contain declarations of objects, variables,
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
How Web Database Architectures Work CPS181s April 8, 2003.
7-1 Active Server and ADO Colorado Technical University IT420 Tim Peterson.
XP Tutorial 8 Adding Interactivity with ActionScript.
URL Encoding When data is entered on a Web page form, it must be encoded before it can be passed to some program for processing. Each element on the form.
Raina NEC Application Object Describes the methods, properties, and collections of the object that stores information related to the entire Web.
eCommerce Technologies Syntax & Procedures for Markup MIS Spring 2004 Instructors: Kelly Fish, Ph.D. John Seydel, Ph.D.
ASP.NET WEB Applications. ASP.NET  Web application framework developed by Microsoft  Build dynamic data driven web applications and web services  Subset.
HTML Structure II (Form) WEEK 2.2. Contents Table Form.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
Active Server Pages v.s. Java Server Pages Presenters: Lan Guo Qunying Fan Pei-Xun Wu Date:
6/28/ A global mesh of interconnected networks (internetworks) meets these human communication needs. Some of these interconnected networks are.
ASP Explained By: Sarbjit Kaur.
ASP.
Web Systems Development (CSC-215)
Chapter 2 Interacting with the Customer
Client-Server Model: Requesting a Web Page
Presentation transcript:

Server Object Server Object

The Server object represents a programmable interface to the HTTP service that provides a mechanism to administer and control the Web Server The Server object used four method to control aspects of Web server CreateObject MapPath HTMLEncodeURLEncode

Server Object CreateObject : Creates a Server instance of an object MapPath : Translates the Web’s Server virtual path setting to the physical path on the server. HTMLEncode : Utilizes HTML encoding to deliver text to browser. URLEncode : Utilizes URL encoding techniques.

CreateObject Method Create a connection to an instance of an ActiveX Object. This connection mechanism is based on the Common Object Mode(COM) COM provides the standard for objects to communicatewith one another

CreateObject Method The CreateObject method use the following syntax: Server.CreateObject(progID) –The progID also requires the following format appname.ObjectType

CreateObject Method ASP ships with five components that can be used immediately: –Database Object –AdRotator –Browser Component –Content Streaming Component –Server-Side Includes(SSI) component

MapPath Method The Server object uses the MapPath method to track and manage information on the server. The MapPath method requires the following syntax : Server.MapPath(path)

MapPath Method There are two basics rules to remember with path arguments. Path argument start with a backslash(\) or slash(/) are used to represent virtual directories. Path argument that do not start with a backslash or slash represent relative directories.

MapPath Method or return ==> C:\InetPub\wwwroot\Scripts or return ==> C:\InetPub\wwwroot

MapPath Method SalesIf the ASP file was run in the Sales directory. return ==> C:\Inetpub\wwwroot\Sales\Script s

URLEncode Method To ensure that all the characters entered by user are properly passed to the server. Server.URLEncode(string) Server.URLEncode(“Dave’s #1 Fan”) DAVE=%27s+%231+Fan

URLEncode Method The ERLEncode method performs the following processes to the data –Spaces are transformed into plus(+) symbol –Fields are left unencoded –An unencoded equal sign assigns an unencoded field name with the data value. –Non-ASCII characters are transformed into escape codes

HTMLEncode Method The HTMLEncode method is used by the server to explicity define the character to displayed to a page. Server.HTMLEncode(String) Server.HTMLEncode(“Table width=‘100%’”) <Table width=‘100%’>

Server Object Properties ScriptTimeOutThe Server Object has only one property is ScriptTimeOut. Used to set the amount of time the Server will process the ASP script before terminate the request. or