|
Comments are used to make your code more readable and documented? In ASP an apostrophe (single quote) is used to comment a line of code.
Here is the example
<%
'Variable declaration
DIM username, age, country
'Getting values from HTML form
username = Request.Form("username")
userage = Request.Form("userage")
usercountry = Request.Form("usercountry")
'Writing values of the html form
Response.Write("User Name = " & username & "<br>")
Response.Write("User Age = " & userage & "<br>")
Response.Write("User Country = " & usercountry & "<br>")
%>
Comments do NOT get interpreted so you can put whatever you want into them. However, comments are important to keep track of what you are doing in the code. |