0% found this document useful (0 votes)
25 views

Practical 6

Active Server Pages (ASP) is a programming environment that allows dynamic HTML pages to be generated using server-side scripting. ASP pages have the .asp file extension and can include both client-side and server-side scripts. By default, VBScript is used for server-side scripting. An ASP file works like an HTML file but scripts in the ASP file are executed on the server before the page is returned to the browser as plain HTML. ASP allows dynamic editing of web page content, responding to user queries, accessing databases, and provides security since the ASP code cannot be viewed from the browser.

Uploaded by

npbachchanit
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Practical 6

Active Server Pages (ASP) is a programming environment that allows dynamic HTML pages to be generated using server-side scripting. ASP pages have the .asp file extension and can include both client-side and server-side scripts. By default, VBScript is used for server-side scripting. An ASP file works like an HTML file but scripts in the ASP file are executed on the server before the page is returned to the browser as plain HTML. ASP allows dynamic editing of web page content, responding to user queries, accessing databases, and provides security since the ASP code cannot be viewed from the browser.

Uploaded by

npbachchanit
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Practical No.

: 6

AIM: To study about ASP.

 Introduction of ASP

 ASP stands for Active Server Pages


 ASP is a programming environment that gives the ability to generate
dynamic html pages with the help of server side scripting.
 VBScript is the default scripting language for ASP
 An ASP page is almost the same as a HTM or HTML page... the only
difference is that an ASP page has the '.asp' extension
 Active Server Page can include both client side and server side scripts.
 In an ASP page VBScript is usually used as the server side and Java Script
as the client side scripting language
 You don't need any special software to write an ASP page.
 An ASP page can be written with any HTML editor... even in Windows
Notepad.
 If you are looking for some special software to write an ASP page, Microsoft
Visual InterDev is the best tool for you.

Example:

<html>
<body>
<%
response.write("My first ASP script!")
%>
</body>
</html>

ASP is browser independent because all the scripting code runs on the
server and the browser only gets a normal HTML page as a result of server
side scripting.

 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

33
 How does it work?

 When a browser requests an HTML file, the server returns the file
 When a browser requests an ASP file, IIS/ PWS 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

 What can be done with ASP?

 Dynamically edit, change or add any content of a Web page


 Respond to user queries or data submitted from HTML forms
 Access any data or databases and return the results to a browser
 The advantages of using ASP instead of CGI and Perl, are those of simplicity
and speed
 Provides security since your ASP code cannot be viewed from the browser
 Since ASP files are returned as plain HTML, they can be viewed in any
browser

34

You might also like