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