. Net syntax

Source: Internet
Author: User
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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.