E-Commerce: Internet Technology and Programming
E-Commerce: Internet Technology and Programming
PAPER – 303
ASP
and
E-COMMERCE
Prepared By :–
Bholabhai Patel
College of Computer Studies,
Gandhinagar
Preface
ASP and E-Commerce Syllabus
Introduction to ASP
ASP Objects
ActiveX Data Objects
Contents
Part – I :- Introduction to ASP
Request Object
Response Object
Error (Err) Object
Active Server Pages Objects – In Detail
Application Object
Server Object
Session Object
Request Object
Response Object
Introduction
What is Electronic Commerce?
Business-to-Business e-Commerce
Business-to-Customer e-Commerce
Customer-to-Customer (C2C) e-Commerce
Hardware and Software Requirement for Electronic
Commerce
Advantages and Disadvantages of Electronic
Commerce
Benefits of Electronics Commerce
Issues in Electronic Commerce
Privacy and Security
Electronic Payment Systems
Implementation Issues
Part – I
Introduction to ASP
of commands from a
particular scripting language is referred as a script.
locates the Web server specified by the first part of the URL
(i.e. www.something.com).
2. The client then requests the ASP page specified by the
second part of the URL (i.e. /default.asp).
3. The Web server reads the ASP file and processes the code.
An overview of the
elements of the technology :-
Hypertext Transfer Protocol (HTTP) is the protocol used for
communication between browsers and Web server. Http uses a
request/response model of communications – essentially the
client-server model. A browser establishes a connection with a
server and sends a response back to the browser.
A Web Server is a computer that contains all the Web pages
for a particular Web site and has special software installed to
send these Web pages to Web browsers that request them.
A Browser connects with a Web server by establishing a TCP
connection at port 80 of the server. This port is the address at
which Web servers "listens" for browser requests. Once a
connection has been established, a browser sends a request to
the server. This request specifies a request method, the URL of
the document, program, or other resources being requested,
the HTTP version being used by the application layer protocol
serving as an interface between the local TCP/IP port and
browser/server process.
BROWSER SERVER
Server request methods are available. GET, HEAD and POST are
the most commonly used ones.
The GET method is used to retrieve the information contained
at the specified URL. This Method may also be used to submit
data collected in an HTML form or to invoke a Common
Gateway Interface (CGI) program. When the server processes
a GET request, it delivers the requested information an HTTP
header that provides data about the server, identifies any
errors that occurred in processing the request, and describes
the type of information being returned as result.
The HEAD method is similar to the GET method except that
when a Web server processes a HEAD request it only returns
the HTTP header data and not the information that was the
The .asp File :- ASP is built around files with the filename
extension .asp. An .asp file is a text file and can contain any
combination of the following:
Text
HTML Tags
Script commands – A script command instructs your
computer to do something, such as assign a value to a
variable.
A Web sever must process an .asp file. To make the .asp file
available to Web users, save the new file in a Web publishing
directory under a Web server.
The
Client’s
System
SERVER
Request ASP.dll
Pre-processing Scripting Engine
HTML for display
Translated to HTML Execution
the script.
4. Translation – ASP translates the results of the execution into
HTML.
5. Display – The HTML is sent back to the Web browser, which
The Components of an
Active Server Pages Application
An ASP application is comprised of various items that together
form the ASP Application. The collection consists of various text-
based files, Server objects and components, and Active server
scripting, as shown in the Figure below.
Figure: The diverse collection that forms ASP applications.
Server-Side Scripting Client-side
Scripting
Defines application
distributed via MTS
Listing: An Asp file uses HTML tags, ASP scripts, and standard
text.
<HTML> ‘= = =Traditional HTML Tags
<HEAD> <TITLE> ‘= = =Standard HTML
Welcome ‘= = =Standard Text
</TITLE></HEAD><BODY>
<% ‘= = =Active Server Script
Sub WriteWelcomeMessage()
Dim myGreeting
If Time >= #12:00:00 AM# And Time < #12:00:00 PM#
Then
myGreeting = “Good Morning !”
Else
myGreeting = “Hello !”
End If
Response.Write mygreeting
End Sub
%>
<% Call WriteWelcomeMessage %> ‘===Executing the Active
Server subroutine
</BODY></HTML>
Traditional HTML files consists of only HTML tags for page layout
and standard text to display text. The HTML tags are used to
create and display the content in the Web page. The difference
Jatin Soni : 9904181899 : Hi Friends.
Jatin Soni : 9904181899 : Hi Friends.
Creating, Developing
and Running an ASP Page