Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

ASP Tutorial

ASP is an old (but still powerful) tool for making dynamic Web pages.

ASP is a technology (much like PHP) for executing scripts on a web server.

In this tutorial you will learn all you need to know about ASP.


Easy Learning with "Show Example"

This ASP tutorial contains hundreds of examples.

Our "Show Example" tool makes it easy to learn ASP, because it shows ASP code with parallel HTML output.

Example

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

</body>
</html>
Show Example »

Click on the "Show Example" button to see how it works!


What is ASP?

  • ASP stands for Active Server Pages
  • ASP is a Microsoft Technology
  • ASP is a program that runs inside a web server

What is an ASP File?

  • An ASP file has the file extension ".asp"
  • An ASP file is just the same as an HTML file
  • An ASP file can contain server scripts in addition to HTML
  • Server scripts in an ASP file are executed on the server


What can ASP do for you?

  • Edit, change, add content, or customize any web page
  • Respond to user queries or data submitted from HTML forms
  • Access databases or other server data and return results to a browser
  • Provide web security since ASP code cannot be viewed in a browser
  • Offer simplicity and speed

How Does it Work?

When a browser requests a normal HTML file, the server just returns the file.

When a browser requests an ASP file, the server passes the request to the ASP engine which reads the ASP file and executes the server scripts in the file.

Finally the ASP file is returned to the browser as plain HTML.


ASP References

At W3Schools you will find complete ASP references about built-in objects and components, and their properties and methods.

ASP References


ASP Examples

Learn by 100 examples! Because ASP scripts are executed on the server, you can not view ASP code in a browser, you will only see the output from ASP which is plain HTML. At W3Schools every example displays the hidden ASP code. This will make it easier for you to understand how it works.

ASP Examples!



×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.