ASP files must have an "asp" extension, instead of "html."  Also, they must be text files.  Use a text editor such as NotePad or TextPad.

ASP code must be enclosed within opening and closing tags.  The opening tag is <% and the closing tag is %>.

There are two formats for ASP code:  blocks or in-line.

Please review the Coding Standards!  Also, brush up on your Visual Basic.

Code blocks are used for normal coding of declarations and statements.  If you have one line of code, the tags can be placed on the same line as the code:
[
][
]
<% If x = 5 Then %>
[
][
] For more than one line of code, it’s easier to read if the tags are placed on their own lines, and all code is indented: [
][
]
   <%
      If x = 5 Then
         y = 2
      Else
         y = 3
      End If
   %>
[
][
] In-line code is used to insert a value from a variable, constant, literal or expression into the HTML. Note that the opening tag also includes an equal (=) sign. [
][
]
   <%= x %>
   <%= x + 5 %>
   <%= 5 %>
[
][
] All variables are of type variant, there is no data typing. Type, or copy-paste, the following into a text editor and save it as "HelloWorld.asp" in the "c:\inetpub\wwwroot\" directory. [
][
]
   <%
      Option Explicit

      ‘Code Block segment

      ‘Variables are variant, so no As DataType
      Dim strMessage

      strMessage = "Hello, World!"
   %>
   
      
         
         <%= strMessage%>
      
      
         
         

<%= strMessage%>

[
][
] Make sure that PWS is running. Open your browser, type "localhost/HelloWorld.asp" in the Address/Location bar, and press enter. You should see "Hello, World!" both in the title bar and the main browser window. Note: It does not matter which browser you use, because the server executes the code. All the browser ever sees is straight HTML.