asp tut
TRANSCRIPT
-
8/14/2019 ASP Tut
1/10
A small Tutorial
On
ASP
(Active Server Pages)Objective: To expose the students with needand use of web programming
Presented by Bikram Shrestha
Kantipur City College
-
8/14/2019 ASP Tut
2/10
Scope of tutorial
The Server Tier:
Web Server Concept, Web Programming Conceptsbased on ASP, Setting a platform to execute ASP,
Architecting Web Application, Creating Dynamiccontent, Typical Usage and Examples of ASP.
Have you wondered..
Why bother with ASP at all, when HTML can serve your needs?
What if you want to display information that changes?
What if you want to process data entered by users on web
forms?
-
8/14/2019 ASP Tut
3/10
ASP. ASP ASP..
Active Server Pages (ASPs) are Web pages that contain server-side scripts in addition to the usual mixture of text and HTML
tags. Server-side scripts are special commands you put in Webpages that are processed before the pages are sent from theserver to the web-browser of someone who's visiting yourwebsite.
ASP, Active Server Pages a pick of a day, my man of matches
Web yes, definitely World Wide Web
History no history at all i.e.in 1990, Tim Berners-Lee developedwww.
WWW allows users to locate and view multimedia-baseddocuments (through internet).
Architectural approach client/server
A client A web browser
A server A web server
-
8/14/2019 ASP Tut
4/10
In a typical Web Application
- A top-tier,client, directly interacts with user.
- A bottom-tier is the database
- A middle tier consists all the logic (powered byserver)
Web ServerA black box, a magic box, a processor ????
-manages access to files via the platform-neutral HTTP Handlespermissions, execute programs, keep track of directories andfiles and communicate with client computers.
A three cheers to IIS (Internet Information services) and Apache(A patchy server - indeed).
-
8/14/2019 ASP Tut
5/10
Server-side Scripting
Scope of execution of scripts so far away.-resides on the server and provides flexibility especially with database access.
-Unlike client-side scripts they are not viewable.
-Thinking to avoid client side scripting?? dont be thatmean.
(validation, interactivity, Dynamic HTML require it.)
IS ASP a only Super Hero?-definitely notPHP, Coldfusion, JSP, CGI ..
-
8/14/2019 ASP Tut
6/10
Setting up a Platform or ASP..
-a web server-Asp support
-Few step on configuring server
IIS Installing and Configuring..
-
8/14/2019 ASP Tut
7/10
Active Server Pages
VBScript has become the de facto standard forwriting server-side Active Server Pages
Server side scripts can reside along with client
side scripts and HTML in a same single page. Anasp file has an extension as .asp.
At server asp.dll parses the ASP file.
Enclose ASP scripts within
Use @Language statement for clarity.
Use option explicit for avoiding logical errors due
to misspelled variables.
-
8/14/2019 ASP Tut
8/10
Example:
-
8/14/2019 ASP Tut
9/10
Does the code look scary ??
It should not.
All Control, Loop structures and functions areborrowed from your well familiar language i.e., VisualBasic.
So if you are familiar with Visual Basic you are halfway done with ASP.
There are only few ASP intrinsic Objects for corefunctionality;
-Response Object
-Request Object
-Session Object
-AspError Object
-
8/14/2019 ASP Tut
10/10
Some Examples and Disscusion.
..