Many of the ASP students may have the possibility of being lost in double quotes, single quotes, and the & number. The most important thing is to do not understand the meaning of three types of symbols, of course, you can't grasp them well. The following is my view of the three types of symbols, the technology is not fine, and it is inevitable that there is negligence. 1. Double quotation marks "" ASP can be any character, string, HTML code in double quotes. such as
<% response.write ("cnbruce here")%>
The resulting page effects are: default text and bold text "cnbruce here", let's think about it, what should I do if I want to add a color effect on the output page text? 1. General text color this: cnbruce font> 2, response.write Writing is: response.write ("Enter the content") 3, if you want to super The link code is placed in Response.write, there is no two quotes in the Write method and the double quotes in the Color to form nested effects, which must form response.write (" cnbruce font> ") 4, debug results are not optimistic, because Color's pre-quotation marks and Write's pre-quotes form match, the content is CNBRUCE < / font>. The end result is: the middle # 0000FF is alone. 5, so for the result of the correct, you can put the # 0000ff as a string in double quotes, then the string is in the front string CNBRUCE font> The final result is as follows:
<% response.write (")%>
2, single quotes '' just like learning the language, continue in the quotation marks in double quotes can be used. Then, the # 0000FF in the above statement response.write (" cnbruce font>" can turn its double quotes to single quotes: Response.write (" CNBRUCE font> "), which is equal to it correctly. 3, the main role of the Connection Character & Region ASP in ASP is used to connect, including: string - string, string-variable, variable-variable, etc. Hybrid connection. Such as one of the following questions:
<% mycolor = "# 0000ff" response.write ("