Creating your first ASP Page
Before we start this tutorial you will need to install ASP on your system. See ASP Install before preceding. Great lets begin, this tutorial will just display some text in a web browser, It will introduce you to the basic tags and actions of ASP.
ASP and HTML can work side by side, Lets creat a very basic HTML page.
< html>
< head>
< title>My First ASP webpage
< /head>
We can now place ASP in the HTML. ASP uses the < % %> tags to tell the server asp code will begin here and end here.
Here is the script that will display the words ” This is my first ASP Page ” in a web browser
< html>
< head>
< title>My First ASP webpage
< /head> < %
Dim strMessage
strMessage = "This is my first ASP Page"
Response.Write (strMessage)
%>
Lets explain each line of the code
Dim strMessage Creates & declares the message variable.
StrMessage = ” ” This line holds the variable we wish to print.
Response.Write () Prints the variable stored in the StrMessage line.
Now store this file in your wwwroot folder in PWS folder and check in in your browser.
Happy coding My Friends!


Reply With Quote
Bookmarks