ASP basic Syntax

Source: Internet
Author: User

ASP's Syntax
If you have any experience with PHP, JavaScript or general ASP programming then the syntax will make a sense to you. However, if you have experience only with network technologies, such as HTML and CSS, then the ASP will face greater challenges.


ASP syntax for: packaging
Just how to use HTML tags, make Web pages, need to tag the ASP to create dynamic websites. These tags are not used in HTML as typical tags, so be sure to notify you of the difference between the tags used for ASP and HTML for tags. Here's an ASP script that we've learned from the past.

ASP code:
<body>
"<%
Response.Write ("Hello Me")
<% "
"/Weight"
"/html"

ASP Technology-Tags
These special tags "<% and <%" will always summarize your ASP code. There are things in the ASP tag, which set aside the normal HTML tags:

An open ASP tag is "<%, while HTML tags usually look like <tagname>
The closing ASP tags look like <% ", while HTML tags usually look like"/tag names "
ASP code can occur anywhere, even in HTML markup-open markup such as:
ASP code:
"One href =" "<% Response.Write (" index.asp ") <%" "" "Home </a"

Show:
Home
ASP syntax-scripting dependencies
In addition to the packaging label of the ASP, the rest of the ASP's syntax is dependent on its scripting language you are using in your ASP code. The default setting for ASP is the script language base that is closed by Visual Basic. However, you can also use a non-Microsoft scripting language, and the most popular choice is using JavaScript. The following two lessons will be discussed in ASP coding with the helper two scripting languages.

If you would like to know about VBScript, you can check our VBScript tutorials.

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.