1. Web Applications ProgramRoot OPERATOR :~ The operators are interpreted as the root directory of the current application, so that we can use the root directory as the starting point of all paths.
2. Program CodeBlock Syntax:
The program code block syntax is used to define the "embedded program code" or "embedded expression" to be executed when the web page is displayed ". Embedded program code is used to define independent program code blocks or control process blocks. To define embedded program code, use the syntax tag shown below :.
The response. Write method can write information to the HTTP output content data stream, while the embedded expression can be used as a shortcut to call the respose. Write () method. The syntax of the embedded expression is as follows :.
For example, the result is exactly the same as the result.
How to use the program code block Syntax:
Eg:
Welcome = 0; I --) {%> Welcome |
3. server-side annotation syntax mark ""
Content (whether it is program code or static text) located between "" will not be processed on the server, and of course it will not be displayed on the webpage.
Note: server-side comments can be used in the program code declaration block (), but not in the program code block (where server-side comments are used. In addition, server-side annotations cannot be nested.
You can useProgramming LanguageTo add comments.
Eg: