Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 A S P

2 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

3 Introduction What is the ASP ASP (Active Server Pages) is a technology developed by Microsoft. Pages using ASP are primarily developed in JavaScript, VBScript, or PerlScript and are integrated into the HTML of your Web pages. The ASP code is compiled by the server and the resulting output is standard HTML. By using ASP, Web pages can be dynamic, full of ever-changing content, and browser independent

4 Introduction (Cont.) Here's the official word from the Microsoft site: "Active Server Pages is an open, compile-free application environment in which you can combine HTML, scripts, and ActiveX server components to create dynamic and powerful Web-based business solutions. Active Server Pages enables server- side scripting for IIS with native support for both VBScript and Jscript." and the highest version of IIS is IIS 5.0Microsoft site

5  ASP stands for Active Server Pages  ASP is a Microsoft Technology  ASP is a program that runs inside IIS  IIS stands for Internet Information Services  PWS is a smaller - but fully functional - version of IIS

6 What is an ASP File?  An ASP file is just the same as an HTML file  An ASP file can contain text, HTML, XML, and scripts  Scripts in an ASP file are executed on the server  An ASP file has the file extension ".asp"

7 Why we choose ASP What can we do by using ASP  Server-side ASP scripts can be used to store HTML form information in a database, personalize Web sites according to visitor preferences, or use different HTML features based on the browser.  separate the design of your Web page from the details of programming access to databases and applications, allowing programmers and Web designers to focus on what they do best.  Can call other programs to do things like access databases, serve different pages to different browsersaccess databases

8 Why we choose ASP (Cont.) The benefits of ASP  ASP runs as a service of the Web server, and is optimized for multiple threads and multiple users.  you can create ASP pages using whatever language you want.  ASPs can also take advantage of COM and DCOM objects with minimum effort.  Server-side scripts cannot be readily copied because only the result of the script is returned to the browser; users cannot view the script commands that created the page they are viewing.

9 How Does ASP Differ from HTML?  When a browser requests an HTML file, the server returns the file.  When a browser requests an ASP file, IIS passes the request to the ASP engine. The ASP engine reads the ASP file, line by line, and executes the scripts in the file. Finally, the ASP file is returned to the browser as plain HTML

10 How ASP works

11 How ASP works (Cont.) Have a look at the diagrams below. They are pretty simplistic and self-explanatory.

12  IIS is a set of Internet-based services for servers created by Microsoft for use with Microsoft Windows.  IIS comes with Windows 2000, XP, Vista, and Windows 7. It is also available for Windows NT.  IIS is easy to install and ideal for developing and testing web applications. IIS - Internet Information Server

13 PWS - Personal Web Server  PWS is for older Windows system like Windows 95, 98, and NT.  PWS is easy to install and can be used for developing and testing web applications including ASP.  We don't recommend running PWS for anything else than training. It is outdated and has security issues.

14 The Basic syntax rule of ASP ASP contain the server scripts, which can contain any expressions, statements, procedures, operators valid for the scripting language. These server scripts are enclosed by the delimiters  1. VBScript  2. JavaScript  3. Other Scripting Languages

15 ASP’S object model  1. Request Object  2. Response Object  3. Server Object  4. Session Object  5. Application Objects

16 Limitations of ASP  Many of the functions of ASP will perform often in a data driven website take several lines of repetitive code each time to perform.  Sometimes, the code of ASP will become repetitive and is somewhat time consuming.  ASP is the lack of a good development environment. ASP is extremely robust, working well with the Windows platform on many levels, but is often convoluted and finding good support documentation and code examples can be excruciating.  And if you are not proficient in Visual Basic or programming, ASP is a very difficult language to learn.

17

18 Setting java script as default language for a particular page 

19 Summary  ASP was designed as a faster and easier alternative to CGI scripting using Perl or C. It provides an easy-to-learn scripting interface (including native support for VBScript and JScript), along with a number of predefined objects that simplify many development tasks, such as maintaining user state and defining global variables within an application. ADO components can be used to perform additional functions, including accessing ODBC-compliant databases, and outputting data to text files. Java components and XML can be used to extend ASP scripts


Download ppt "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."

Similar presentations


Ads by Google