Presentation is loading. Please wait.

Presentation is loading. Please wait.

ASP Mr. Baha & Dr.Husam Osta 2014.  What is ASP?  Internet Information Services  How Does ASP Differ from HTML?  What can ASP do for you?  ASP Basic.

Similar presentations


Presentation on theme: "ASP Mr. Baha & Dr.Husam Osta 2014.  What is ASP?  Internet Information Services  How Does ASP Differ from HTML?  What can ASP do for you?  ASP Basic."— Presentation transcript:

1 ASP Mr. Baha & Dr.Husam Osta 2014

2  What is ASP?  Internet Information Services  How Does ASP Differ from HTML?  What can ASP do for you?  ASP Basic Syntax Rules  ……..

3 Active Server Pages,  ASP stands for Active Server Pages,or classical ASP ◦ ASP is Microsoft's first server side scripting engine ◦ It enables you to make dynamic and interactive web pages. nternet Information Services (IIS) ◦ ASP is a program that runs inside Internet Information Services (IIS)  An ASP file can contain ◦ Text, HTML, XML, and scripts  Scripts in an ASP file are executed on the server  The default scripting language used for ASP is VBScript, or others like JScript ◦ An ASP file has the file extension “.asp”

4  Internet Information Services is an extensible web server created by Microsoft for use with Windows family.  IIS supports: ◦ HTTP, HTTPS, FTP, FTPS, SMTP and NNTP.  It is an integral part of Windows family since Windows NT 4.0, though it may be absent from some edition (e.g. Windows XP Home edition).  IIS is not turned on by default when Windows is installed.

5 HTML  When a browser requests an HTML file 1.the server returns the file

6 ASP  When a browser requests an ASP file 1.IIS 1.IIS passes the request to the ASP engine. 2.The ASP engine reads the ASP file, line by line, and executes the scripts in the file. 3.Finally, the ASP file is returned to the browser as plain HTML

7 1. Dynamically edit, change, or add any content of a Web page 2. Respond to user queries or data submitted from HTML forms 3. Access any data or databases and return the results to a browser 4. Customize a Web page to make it more useful for individual users

8 1. The advantages over other technologies, are 1.Simplicity 2.speed 2. Provide security 2. Provide security since the code cannot be viewed from the browser minimize the network traffic 3. Clever ASP programming can minimize the network traffic

9  It is a unified Web development model  It includes services necessary to build enterprise-class web applications with minimum of coding.  This technology is developed under the.Net framework that is provided in the visual studio platform

10  An ASP file normally contains HTML tags, just like an HTML file.  An ASP file can also contain server scripts, surrounded by the delimiters.  The command response.write is used to write output to a browser.  Example

11 ASP HLTML

12

13  FormatDateTime(Date[, NamedFormat])  The NamedFormat argument may take the following values: ◦ vbLongDate ◦ vbShortDate ◦ vbLongTime ◦ vbShortTime

14  YearReturns the current year from a date - with today's date, it returns: 2014 Year  MonthReturns the current month from a date - with today's date, it returns: 1 Month  DayReturns the current day of the month from a date - with today's date, it returns:29 Day  HourReturns the current hour from a time - with the current time, it returns: 8 Hour  MinuteReturns the current minute from a time - with the current time, it returns: 10 Minute  SecondReturns the current second from a time - with the current time, it returns: 28 Second

15  Weekday Returns the current day of the week from a date - with today's date, it returns: 3 NOTE: this function has to be called with the argument "the first day of the week" (eg. Monday or Sunday) as well - like this: Weekday(Now,vbMonday) Weekday

16  Variables are used to store information.  The example demonstrates ◦ how to declare a variable, assign a value to it, and use the value in a text.

17 For Initializion To Expressions Statement Next

18 For Initializion To Expressions Statement Next

19  Do {While | Until} condition Statement Loop OR Do Statement Loop {While | Until} condition Do Statement Loop {While | Until} condition

20

21

22

23 If condition Then statement Else statement End If

24 = Equals Greater than = Greater than or equal to <> Not equal to AND OR NOT

25

26

27 Select Case Expression Case 1 statement Case 2 statement Case Else statement End Select

28

29  http://html.net/tutorials/asp/lesson8.asp


Download ppt "ASP Mr. Baha & Dr.Husam Osta 2014.  What is ASP?  Internet Information Services  How Does ASP Differ from HTML?  What can ASP do for you?  ASP Basic."

Similar presentations


Ads by Google