SlideShare una empresa de Scribd logo
1 de 8
Descargar para leer sin conexión
Introduction to ASP

Introduction

Are you sick of static HTML pages? Do you want to create dynamic web pages? Do you

want to enable your web pages with database access? If your answer is “Yes”, ASP might

be a solution for you. In May 2000, Microsoft estimated that there are over 800,000ASP

developers in the world (1). You may come up with a question what the heck ASP is.

Don’t worry. After reading this paper, you will know what it is, how it works and what it

can do for you. Are you ready? Let’s get to know ASP together.

What is ASP?

ASP stands for Active Server Pages. Microsoft introduced Active Server Pages in

December 1996, beginning with Version 3.0. Microsoft officially defines ASP as:

“Active Server Pages is an open, compile-free application environment in which you can

combine HTML, scripts, and reusable 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.” (2). In other words, ASP is a

Microsoft technology that enables you to create dynamic web sites with the help of server

side script, such as VBScript and Jscript. ASP technology is supported on all Microsoft

Web servers that are freely available. If you have Window NT 4.0 Server installed, you

can download IIS (Internet Information Server) 3.0 or 4.0. If you are using Window

2000, IIS 5.0 comes with it as a free component. If you have Window 95/98, you can

download Personal Web Server (PWS), which is a smaller version of IIS, from Window

95/98 CD. You can also download these products for free from Microsoft’s web site.
Well, you have learned what the ASP technology is. Next, you will learn about an

ASP file. Is it the same as HTML file? Let’s explore it.

What is an ASP file?

           An ASP file is quite like an HTML file. It contains text, HTML tags and scripts,

which are executed on the server. The two widely used scripting languages for an ASP

page are VBScript and JScript. VBScript is pretty much like Visual Basic, whereas

Jscript is the Microsoft’s version of JavaScript. However, VBScript is the default

scripting language for ASP (3). Besides these two scripting languages, you can use other

scripting language with ASP as long as you have an ActiveX scripting engine for the

language installed, such as PerlScript.

           The difference between an HTML file and an ASP file is that an ASP file has the

“.asp” extension. Furthermore, script delimiters for HTML tags and ASP code are also

different. A script delimiter is a character that marks the starting and ending of a unit.

HTML tags begins with lesser than (<) and greater than (>) brackets, whereas ASP script

typically starts with <% and ends with %>. In between the delimiters are the server-side

scripts.

           To write an ASP script, you don’t need any additional software because it can be

written with any HTML editor, such as Notepad. Nonetheless, if you feel bored with the

plain text and would like to use some special software, you can use Microsoft visual

InterDev, which helps you to easily create an ASP page by giving you nice highlights and

debugging dialogue boxes (4).

           I hope that you already have an idea of what an ASP file is and how it is different

from an HTML file. In the next step, you will learn how ASP works. Let’s go.
How does it work?

As you have learned, scripts in an ASP file are server-side scripts, which means that the

scripts are processed on the server and then the result of the scripts will be converted to

HTML before sending to the web browser. To illustrate, let’s take a look at this table to

compare the process of retrieving an HTML page and an ASP page (5).

                 HTML process                                    ASP process

   1. A user requests a web page (i.e.,            1. A user requests a web page (i.e.,

       http://www.utexas.edu/index.html                http://www.devasp.com/test.asp

       in the web browser.                             in the web browser.

   2. The browser finds the appropriate            2. The browser finds the appropriate

       web server, and asks for the                    web server (like IIS or PWS), and

       required page.                                  asks for the required page.

   3. The web server locates the required          3. The web server locates the required

       page and sends it back to the                   page, and parses out the ASP code

       browser as HTML text.                           within the ASP script delimiters

                                                       (<%…%>), produces a standard

                                                       HTML page. The server sends that

                                                       HTML page back to the browser, so

                                                       the user cannot see ASP code.

   4. The browser executes the client side         4. The browser executes the client side

       scripting (like JavaScripts)                    scripting (like JavaScripts)

       determining how to display the                  determining how to display the

       results                                         results
As you can see, the whole process of the two is quite similar. Since ASP is a server-side

technology, the required page is executed on the server before the HTML is created and

served to the client. To make it clearer, Figure1 shows the processing behind a browser

request to an ASP page (6).

                 Request ASP page               Request ASP page


      Client                        Browser                          Server


                    Send result                     Send result
                                                                                  Recognize
                                                      Creating
                                                                                  “.asp” extension
                                                      HTML file

                                    Object /
                                    Component                      ASP Engine                       ASP Script


                                                      Call for                       Call for

               Oracle



                                         Provider
                                                                                Call for ADO
               SQL                       Driver                                 (ActiveX Data Object)
               Server




               Access
                                                                         ADO
                                         ODBC


                                                Connect to data access

               FoxPro




       For example, a client types in a URL into your browser. The browser requests the

ASP page from the web server. The server proceeds the file with “.asp” extension to ASP

Engine in which Objects or ActiveX Components can be used to extend the web server

with application-specific functionality. In addition, ASP will use ADO to connect to a
database (SQL, Access, Oracle, etc.) to pull out the relevant data, such as the current

weather in a specific area. Thus, a different page is generated according to the area

specified and time that the page is accessed. Then, the server generates HTML tags

before sending it back to the client. Therefore, when you view the source of an ASP file,

you will not see any different from a standard HTML file.

       ASP includes five build-in objects (7):

   •   Request – to get information from the user that is passed along with an HTTP

       request

   •   Response – to output data to the requesting client

   •   Server – to control the Internet Information Server

   •   Session – to store variables associated with a given user session

   •   Application – to store information that remain active for the lifetime of an

       application, such as a page counter.

   You have already known how ASP technology works. Isn’t it fascinating? You

probably want to know how to make it work and what you need to make it work. In the

next section, you will find the way to do it.

How to make it work?

       First of all, you need to set up an environment where you can execute your

scripts; that is you need to set up your web server (IIS or PWS). If you have an NT

Server, IIS is already installed for you. If you Window 95/98, you can install PWS from

the add-ons directory on the Win 98 CD. If you are using UNIX, you can Chili!Soft

(www.chilisoft.com) instead of Microsoft web server. Next, you will need to install some
database software, such as MS Access, Microsoft SQL Server (in case you want to

connect to database).

       Last but not least, you need an ASP editor. It can be any text editor, like NotePad

or Microsoft Visual InterDev. To create an ASP file, you may need to know a scripting

language, such as VBScript or JScript. If you want to deal with a database, you also need

to have some knowledge about database, such as creating a Data Source Name (DSN),

creating a recordset. You can learn more about database access from this web site:

http://www.builder.com/Programming/ASPIntro/ss06.html

What are its advantages?

       While learning about ASP technology in previous sections, you might ask

yourself all the time what it can do for you. Certainly, ASP must have some strength;

otherwise, it won’t be popular as such. Let’s count on its strong points and functionality.

   1. Dynamic web page – Since ASP supports scripting languages, which run on the

       web server, your web page can be dynamically created. For example, you can

       create your web page so as to greeting each user when they log into your page

       differently.

   2. Browser independent – ASP is browser independent because all the scripting code

       runs on the server. The browser only gets the results from the server in a standard

       HTML page.

   3. Database Access – One of the greatest assets of ASP is database connectivity.

       ASP enables you to easily build rich database functionality into your web site,

       such as form processing.
4. Building-in objects – The five built-in objects that come with ASP facilitate Web

       application development. For example, you can use Request object to retrieve

       browser request information.

   5. Free availability – Yes, it’s free. You can download web server (IIS or PWS) for

       free from Microsoft’s web site. You don’t even have to have any special tool to

       write an ASP file. In other words, you can simply use any text editor, like

       NotePad.

Conclusion

       ASP technology is a server-side programming developed to enable dynamic web

pages. With its build-in objects and ActiveX components, ASP developers can create a

dynamic web page and make use of database access. Now that you have basic knowledge

about ASP, it is better to have a hands-on experience, which is the best way to learn to

learn how to write an ASP file. There are tons of ASP tutorials out there on the Web. You

can also find some tutorials included at the end of this paper. Enjoy and good luck!

Reference

1. Lesson1: Intro to ASP
http://haneng.com/lessons/1.asp

2. ASP Overview
http://msdn.microsoft.com/workshop/server/asp/aspover.asp

3. Introduction to ASP.DevASP
http://www.devasp.com/samples/asp.asp

4. Introduction to Active Server Pages
http://hotwired.lycos.com/webmonkey/98/39/index2a.html?tw=programming

5. Getting Started with ASP
http://www.4guysfromrolla.com/webtech/090800-1.shtml
6. Molisakulmongkon, P. (1999). Developing Web Database with ASP. Bangkok: DK
Book House: p. 162.

7. Scripting with ASP
http://www.zdnet.com/devhead/stories/articles/0,4413,1600216,00.html
*This paper is written by Jantrathip Sae-Chin for the course EDC385G Interactive
Multimedia Design & Production as the University of Texas - Austin

Más contenido relacionado

La actualidad más candente

New Features of ASP.NET 4.0
New Features of ASP.NET 4.0New Features of ASP.NET 4.0
New Features of ASP.NET 4.0Buu Nguyen
 
CQ Provisionning & Authoring
CQ Provisionning & AuthoringCQ Provisionning & Authoring
CQ Provisionning & AuthoringGabriel Walt
 
AEM Sightly Template Language
AEM Sightly Template LanguageAEM Sightly Template Language
AEM Sightly Template LanguageGabriel Walt
 
ASP.NET 06 - Customizing Your Sites Appearance
ASP.NET 06 - Customizing Your Sites AppearanceASP.NET 06 - Customizing Your Sites Appearance
ASP.NET 06 - Customizing Your Sites AppearanceRandy Connolly
 
Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Amit Sharma
 
SharePoint 2010 Application Development Overview
SharePoint 2010 Application Development OverviewSharePoint 2010 Application Development Overview
SharePoint 2010 Application Development OverviewRob Windsor
 
Introduction to the SharePoint Client Object Model and REST API
Introduction to the SharePoint Client Object Model and REST APIIntroduction to the SharePoint Client Object Model and REST API
Introduction to the SharePoint Client Object Model and REST APIRob Windsor
 
Advanced SharePoint Web Part Development
Advanced SharePoint Web Part DevelopmentAdvanced SharePoint Web Part Development
Advanced SharePoint Web Part DevelopmentRob Windsor
 
Apex basics-for Beginners
Apex basics-for BeginnersApex basics-for Beginners
Apex basics-for Beginnershrakhra
 
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...SharePoint Saturday NY
 
User and group security migration
User and group security migrationUser and group security migration
User and group security migrationAmit Sharma
 
SFDC Inbound Integrations
SFDC Inbound IntegrationsSFDC Inbound Integrations
SFDC Inbound IntegrationsSujit Kumar
 
SharePoint 2010 Client-side Object Model
SharePoint 2010 Client-side Object ModelSharePoint 2010 Client-side Object Model
SharePoint 2010 Client-side Object ModelPhil Wicklund
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04Niit Care
 
Developing Branding Solutions for 2013
Developing Branding Solutions for 2013Developing Branding Solutions for 2013
Developing Branding Solutions for 2013Thomas Daly
 

La actualidad más candente (20)

New Features of ASP.NET 4.0
New Features of ASP.NET 4.0New Features of ASP.NET 4.0
New Features of ASP.NET 4.0
 
Tutorial asp.net
Tutorial  asp.netTutorial  asp.net
Tutorial asp.net
 
CQ Provisionning & Authoring
CQ Provisionning & AuthoringCQ Provisionning & Authoring
CQ Provisionning & Authoring
 
AEM Sightly Template Language
AEM Sightly Template LanguageAEM Sightly Template Language
AEM Sightly Template Language
 
ASP.NET 06 - Customizing Your Sites Appearance
ASP.NET 06 - Customizing Your Sites AppearanceASP.NET 06 - Customizing Your Sites Appearance
ASP.NET 06 - Customizing Your Sites Appearance
 
Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1Oracle apex-hands-on-guide lab#1
Oracle apex-hands-on-guide lab#1
 
SharePoint 2010 Application Development Overview
SharePoint 2010 Application Development OverviewSharePoint 2010 Application Development Overview
SharePoint 2010 Application Development Overview
 
Introduction to the SharePoint Client Object Model and REST API
Introduction to the SharePoint Client Object Model and REST APIIntroduction to the SharePoint Client Object Model and REST API
Introduction to the SharePoint Client Object Model and REST API
 
Advanced SharePoint Web Part Development
Advanced SharePoint Web Part DevelopmentAdvanced SharePoint Web Part Development
Advanced SharePoint Web Part Development
 
Apex basics-for Beginners
Apex basics-for BeginnersApex basics-for Beginners
Apex basics-for Beginners
 
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
Lyudmila Zharova: Developing Solutions for SharePoint 2010 Using the Client O...
 
User and group security migration
User and group security migrationUser and group security migration
User and group security migration
 
LAMP
LAMPLAMP
LAMP
 
SFDC Inbound Integrations
SFDC Inbound IntegrationsSFDC Inbound Integrations
SFDC Inbound Integrations
 
Php Intro
Php IntroPhp Intro
Php Intro
 
ASP.NET Lecture 3
ASP.NET Lecture 3ASP.NET Lecture 3
ASP.NET Lecture 3
 
SharePoint 2010 Client-side Object Model
SharePoint 2010 Client-side Object ModelSharePoint 2010 Client-side Object Model
SharePoint 2010 Client-side Object Model
 
Server side scripting
Server side scriptingServer side scripting
Server side scripting
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
 
Developing Branding Solutions for 2013
Developing Branding Solutions for 2013Developing Branding Solutions for 2013
Developing Branding Solutions for 2013
 

Similar a Intro To Asp

ACTIVE SERVER PAGES BY SAIKIRAN PANJALA
ACTIVE SERVER PAGES BY SAIKIRAN PANJALAACTIVE SERVER PAGES BY SAIKIRAN PANJALA
ACTIVE SERVER PAGES BY SAIKIRAN PANJALASaikiran Panjala
 
DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)
DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)
DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)Prof Ansari
 
Top 15-asp-dot-net-interview-questions-and-answers
Top 15-asp-dot-net-interview-questions-and-answersTop 15-asp-dot-net-interview-questions-and-answers
Top 15-asp-dot-net-interview-questions-and-answerssonia merchant
 
Top 15 asp dot net interview questions and answers
Top 15 asp dot net interview questions and answersTop 15 asp dot net interview questions and answers
Top 15 asp dot net interview questions and answersPooja Gaikwad
 
Asp Net (FT Preasen Revankar)
Asp Net   (FT  Preasen Revankar)Asp Net   (FT  Preasen Revankar)
Asp Net (FT Preasen Revankar)Fafadia Tech
 
Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architectureIblesoft
 
PPT N ASP.NET.pptx
PPT N ASP.NET.pptxPPT N ASP.NET.pptx
PPT N ASP.NET.pptxNareshSoni23
 
Aspnet2.0 Introduction
Aspnet2.0 IntroductionAspnet2.0 Introduction
Aspnet2.0 IntroductionChanHan Hy
 
Asp.net introduction
Asp.net introductionAsp.net introduction
Asp.net introductionKshitij Wagle
 
Web II - 01 - Introduction to server-side development
Web II - 01 - Introduction to server-side developmentWeb II - 01 - Introduction to server-side development
Web II - 01 - Introduction to server-side developmentRandy Connolly
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.netshan km
 

Similar a Intro To Asp (20)

ACTIVE SERVER PAGES BY SAIKIRAN PANJALA
ACTIVE SERVER PAGES BY SAIKIRAN PANJALAACTIVE SERVER PAGES BY SAIKIRAN PANJALA
ACTIVE SERVER PAGES BY SAIKIRAN PANJALA
 
DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)
DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)
DYNAMIC CONTENT TECHNOLOGIES ASP(ACTIVE SERVER PAGES)
 
Top 15-asp-dot-net-interview-questions-and-answers
Top 15-asp-dot-net-interview-questions-and-answersTop 15-asp-dot-net-interview-questions-and-answers
Top 15-asp-dot-net-interview-questions-and-answers
 
Top 15 asp dot net interview questions and answers
Top 15 asp dot net interview questions and answersTop 15 asp dot net interview questions and answers
Top 15 asp dot net interview questions and answers
 
Asp Net (FT Preasen Revankar)
Asp Net   (FT  Preasen Revankar)Asp Net   (FT  Preasen Revankar)
Asp Net (FT Preasen Revankar)
 
Rutgers - Active Server Pages
Rutgers - Active Server PagesRutgers - Active Server Pages
Rutgers - Active Server Pages
 
Asp.netrole
Asp.netroleAsp.netrole
Asp.netrole
 
Asp.Net Tutorials
Asp.Net TutorialsAsp.Net Tutorials
Asp.Net Tutorials
 
What is asp
What is aspWhat is asp
What is asp
 
Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architecture
 
PPT N ASP.NET.pptx
PPT N ASP.NET.pptxPPT N ASP.NET.pptx
PPT N ASP.NET.pptx
 
Web server
Web serverWeb server
Web server
 
Learn ASP
Learn ASPLearn ASP
Learn ASP
 
Aspnet2.0 Introduction
Aspnet2.0 IntroductionAspnet2.0 Introduction
Aspnet2.0 Introduction
 
Introduction to asp
Introduction to aspIntroduction to asp
Introduction to asp
 
More Asp
More AspMore Asp
More Asp
 
Asp.net introduction
Asp.net introductionAsp.net introduction
Asp.net introduction
 
Web II - 01 - Introduction to server-side development
Web II - 01 - Introduction to server-side developmentWeb II - 01 - Introduction to server-side development
Web II - 01 - Introduction to server-side development
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
 
Atlas Php
Atlas PhpAtlas Php
Atlas Php
 

Más de Adil Jafri

Csajsp Chapter5
Csajsp Chapter5Csajsp Chapter5
Csajsp Chapter5Adil Jafri
 
Programming Asp Net Bible
Programming Asp Net BibleProgramming Asp Net Bible
Programming Asp Net BibleAdil Jafri
 
Network Programming Clients
Network Programming ClientsNetwork Programming Clients
Network Programming ClientsAdil Jafri
 
Ta Javaserverside Eran Toch
Ta Javaserverside Eran TochTa Javaserverside Eran Toch
Ta Javaserverside Eran TochAdil Jafri
 
Csajsp Chapter10
Csajsp Chapter10Csajsp Chapter10
Csajsp Chapter10Adil Jafri
 
Flashmx Tutorials
Flashmx TutorialsFlashmx Tutorials
Flashmx TutorialsAdil Jafri
 
Java For The Web With Servlets%2cjsp%2cand Ejb
Java For The Web With Servlets%2cjsp%2cand EjbJava For The Web With Servlets%2cjsp%2cand Ejb
Java For The Web With Servlets%2cjsp%2cand EjbAdil Jafri
 
Csajsp Chapter12
Csajsp Chapter12Csajsp Chapter12
Csajsp Chapter12Adil Jafri
 
Flash Tutorial
Flash TutorialFlash Tutorial
Flash TutorialAdil Jafri
 

Más de Adil Jafri (20)

Csajsp Chapter5
Csajsp Chapter5Csajsp Chapter5
Csajsp Chapter5
 
Php How To
Php How ToPhp How To
Php How To
 
Php How To
Php How ToPhp How To
Php How To
 
Owl Clock
Owl ClockOwl Clock
Owl Clock
 
Phpcodebook
PhpcodebookPhpcodebook
Phpcodebook
 
Phpcodebook
PhpcodebookPhpcodebook
Phpcodebook
 
Programming Asp Net Bible
Programming Asp Net BibleProgramming Asp Net Bible
Programming Asp Net Bible
 
Tcpip Intro
Tcpip IntroTcpip Intro
Tcpip Intro
 
Network Programming Clients
Network Programming ClientsNetwork Programming Clients
Network Programming Clients
 
Jsp Tutorial
Jsp TutorialJsp Tutorial
Jsp Tutorial
 
Ta Javaserverside Eran Toch
Ta Javaserverside Eran TochTa Javaserverside Eran Toch
Ta Javaserverside Eran Toch
 
Csajsp Chapter10
Csajsp Chapter10Csajsp Chapter10
Csajsp Chapter10
 
Javascript
JavascriptJavascript
Javascript
 
Flashmx Tutorials
Flashmx TutorialsFlashmx Tutorials
Flashmx Tutorials
 
Java For The Web With Servlets%2cjsp%2cand Ejb
Java For The Web With Servlets%2cjsp%2cand EjbJava For The Web With Servlets%2cjsp%2cand Ejb
Java For The Web With Servlets%2cjsp%2cand Ejb
 
Html Css
Html CssHtml Css
Html Css
 
Digwc
DigwcDigwc
Digwc
 
Csajsp Chapter12
Csajsp Chapter12Csajsp Chapter12
Csajsp Chapter12
 
Html Frames
Html FramesHtml Frames
Html Frames
 
Flash Tutorial
Flash TutorialFlash Tutorial
Flash Tutorial
 

Último

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 

Último (20)

08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

Intro To Asp

  • 1. Introduction to ASP Introduction Are you sick of static HTML pages? Do you want to create dynamic web pages? Do you want to enable your web pages with database access? If your answer is “Yes”, ASP might be a solution for you. In May 2000, Microsoft estimated that there are over 800,000ASP developers in the world (1). You may come up with a question what the heck ASP is. Don’t worry. After reading this paper, you will know what it is, how it works and what it can do for you. Are you ready? Let’s get to know ASP together. What is ASP? ASP stands for Active Server Pages. Microsoft introduced Active Server Pages in December 1996, beginning with Version 3.0. Microsoft officially defines ASP as: “Active Server Pages is an open, compile-free application environment in which you can combine HTML, scripts, and reusable 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.” (2). In other words, ASP is a Microsoft technology that enables you to create dynamic web sites with the help of server side script, such as VBScript and Jscript. ASP technology is supported on all Microsoft Web servers that are freely available. If you have Window NT 4.0 Server installed, you can download IIS (Internet Information Server) 3.0 or 4.0. If you are using Window 2000, IIS 5.0 comes with it as a free component. If you have Window 95/98, you can download Personal Web Server (PWS), which is a smaller version of IIS, from Window 95/98 CD. You can also download these products for free from Microsoft’s web site.
  • 2. Well, you have learned what the ASP technology is. Next, you will learn about an ASP file. Is it the same as HTML file? Let’s explore it. What is an ASP file? An ASP file is quite like an HTML file. It contains text, HTML tags and scripts, which are executed on the server. The two widely used scripting languages for an ASP page are VBScript and JScript. VBScript is pretty much like Visual Basic, whereas Jscript is the Microsoft’s version of JavaScript. However, VBScript is the default scripting language for ASP (3). Besides these two scripting languages, you can use other scripting language with ASP as long as you have an ActiveX scripting engine for the language installed, such as PerlScript. The difference between an HTML file and an ASP file is that an ASP file has the “.asp” extension. Furthermore, script delimiters for HTML tags and ASP code are also different. A script delimiter is a character that marks the starting and ending of a unit. HTML tags begins with lesser than (<) and greater than (>) brackets, whereas ASP script typically starts with <% and ends with %>. In between the delimiters are the server-side scripts. To write an ASP script, you don’t need any additional software because it can be written with any HTML editor, such as Notepad. Nonetheless, if you feel bored with the plain text and would like to use some special software, you can use Microsoft visual InterDev, which helps you to easily create an ASP page by giving you nice highlights and debugging dialogue boxes (4). I hope that you already have an idea of what an ASP file is and how it is different from an HTML file. In the next step, you will learn how ASP works. Let’s go.
  • 3. How does it work? As you have learned, scripts in an ASP file are server-side scripts, which means that the scripts are processed on the server and then the result of the scripts will be converted to HTML before sending to the web browser. To illustrate, let’s take a look at this table to compare the process of retrieving an HTML page and an ASP page (5). HTML process ASP process 1. A user requests a web page (i.e., 1. A user requests a web page (i.e., http://www.utexas.edu/index.html http://www.devasp.com/test.asp in the web browser. in the web browser. 2. The browser finds the appropriate 2. The browser finds the appropriate web server, and asks for the web server (like IIS or PWS), and required page. asks for the required page. 3. The web server locates the required 3. The web server locates the required page and sends it back to the page, and parses out the ASP code browser as HTML text. within the ASP script delimiters (<%…%>), produces a standard HTML page. The server sends that HTML page back to the browser, so the user cannot see ASP code. 4. The browser executes the client side 4. The browser executes the client side scripting (like JavaScripts) scripting (like JavaScripts) determining how to display the determining how to display the results results
  • 4. As you can see, the whole process of the two is quite similar. Since ASP is a server-side technology, the required page is executed on the server before the HTML is created and served to the client. To make it clearer, Figure1 shows the processing behind a browser request to an ASP page (6). Request ASP page Request ASP page Client Browser Server Send result Send result Recognize Creating “.asp” extension HTML file Object / Component ASP Engine ASP Script Call for Call for Oracle Provider Call for ADO SQL Driver (ActiveX Data Object) Server Access ADO ODBC Connect to data access FoxPro For example, a client types in a URL into your browser. The browser requests the ASP page from the web server. The server proceeds the file with “.asp” extension to ASP Engine in which Objects or ActiveX Components can be used to extend the web server with application-specific functionality. In addition, ASP will use ADO to connect to a
  • 5. database (SQL, Access, Oracle, etc.) to pull out the relevant data, such as the current weather in a specific area. Thus, a different page is generated according to the area specified and time that the page is accessed. Then, the server generates HTML tags before sending it back to the client. Therefore, when you view the source of an ASP file, you will not see any different from a standard HTML file. ASP includes five build-in objects (7): • Request – to get information from the user that is passed along with an HTTP request • Response – to output data to the requesting client • Server – to control the Internet Information Server • Session – to store variables associated with a given user session • Application – to store information that remain active for the lifetime of an application, such as a page counter. You have already known how ASP technology works. Isn’t it fascinating? You probably want to know how to make it work and what you need to make it work. In the next section, you will find the way to do it. How to make it work? First of all, you need to set up an environment where you can execute your scripts; that is you need to set up your web server (IIS or PWS). If you have an NT Server, IIS is already installed for you. If you Window 95/98, you can install PWS from the add-ons directory on the Win 98 CD. If you are using UNIX, you can Chili!Soft (www.chilisoft.com) instead of Microsoft web server. Next, you will need to install some
  • 6. database software, such as MS Access, Microsoft SQL Server (in case you want to connect to database). Last but not least, you need an ASP editor. It can be any text editor, like NotePad or Microsoft Visual InterDev. To create an ASP file, you may need to know a scripting language, such as VBScript or JScript. If you want to deal with a database, you also need to have some knowledge about database, such as creating a Data Source Name (DSN), creating a recordset. You can learn more about database access from this web site: http://www.builder.com/Programming/ASPIntro/ss06.html What are its advantages? While learning about ASP technology in previous sections, you might ask yourself all the time what it can do for you. Certainly, ASP must have some strength; otherwise, it won’t be popular as such. Let’s count on its strong points and functionality. 1. Dynamic web page – Since ASP supports scripting languages, which run on the web server, your web page can be dynamically created. For example, you can create your web page so as to greeting each user when they log into your page differently. 2. Browser independent – ASP is browser independent because all the scripting code runs on the server. The browser only gets the results from the server in a standard HTML page. 3. Database Access – One of the greatest assets of ASP is database connectivity. ASP enables you to easily build rich database functionality into your web site, such as form processing.
  • 7. 4. Building-in objects – The five built-in objects that come with ASP facilitate Web application development. For example, you can use Request object to retrieve browser request information. 5. Free availability – Yes, it’s free. You can download web server (IIS or PWS) for free from Microsoft’s web site. You don’t even have to have any special tool to write an ASP file. In other words, you can simply use any text editor, like NotePad. Conclusion ASP technology is a server-side programming developed to enable dynamic web pages. With its build-in objects and ActiveX components, ASP developers can create a dynamic web page and make use of database access. Now that you have basic knowledge about ASP, it is better to have a hands-on experience, which is the best way to learn to learn how to write an ASP file. There are tons of ASP tutorials out there on the Web. You can also find some tutorials included at the end of this paper. Enjoy and good luck! Reference 1. Lesson1: Intro to ASP http://haneng.com/lessons/1.asp 2. ASP Overview http://msdn.microsoft.com/workshop/server/asp/aspover.asp 3. Introduction to ASP.DevASP http://www.devasp.com/samples/asp.asp 4. Introduction to Active Server Pages http://hotwired.lycos.com/webmonkey/98/39/index2a.html?tw=programming 5. Getting Started with ASP http://www.4guysfromrolla.com/webtech/090800-1.shtml
  • 8. 6. Molisakulmongkon, P. (1999). Developing Web Database with ASP. Bangkok: DK Book House: p. 162. 7. Scripting with ASP http://www.zdnet.com/devhead/stories/articles/0,4413,1600216,00.html *This paper is written by Jantrathip Sae-Chin for the course EDC385G Interactive Multimedia Design & Production as the University of Texas - Austin