There are many articles in ASP in the study how to improve the efficiency of ASP program execution, we concluded that the code between <% and%> faster than in the code outside the tag, we have not thought how to reuse these tags outside the code?
Some people may think this has no meaning! But we can look at the following example with a very relaxed mind and see what interesting phenomena we have got! In this example, we use the WriteBlock function not covered in MSDN:
Test.asp
<title> Look, it's strange </title>
<body>
<%
Response.Write "This is a test ... 1<br> "
%>
Let's guess ...
<br>
<%
Response.Write "The output of strange functions:<br><br>"
Response.Write "Start <br>"
Response. WriteBlock (1)
Response.Write "End <br>"
%>
</body>
Must not imagine the output of what? Haha, the original is the output of the second paragraph does not <% between the%> HTML code
Also, we can write the 1,2,3,... in the WriteBlock parameters. As long as the code snippet exists!!!
If it does not exist, the program will return an error
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