A strange function in ASP

Source: Internet
Author: User

A strange function in ASP

/*
Tofu making is a boutique
Http://www.asp888.net Tofu Technology Station
Please retain the copyright information if reproduced
*/
There are many articles in ASP to study how to improve the efficiency of ASP program execution, we conclude that code execution between <% and%> is faster than in this
Tags outside of the code, we have not thought how to reuse these tags outside the code?
Some people may think this is meaningless! But we can take a very relaxed attitude to look at the following example, to see
What an interesting phenomenon we have got! In this example, we use the WriteBlock function that is not covered in MSDN:
Test.asp
<title> look, it's weird </title>
<body>
<%
Response.Write "This is a test ... 1<br> "
%>
Let's guess ...
<br>
<%

response.write "strange function Output:<br><br>"  
Response.Write "Start <br>" &NBSP;
Response. WriteBlock (1)  
Response.Write "End <br>" &NBSP;
%> 
</body> 
You can't imagine what the output is? Haha, the original is the output of the second paragraph is not in the <% between%> HTML code  
We can also write the writeblock parameters in the same way,... As long as this code snippet exists!!! &NBSP
If it does not exist, the program returns an error

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.