Recommended: A simple introduction to interpreting stored procedures of ASP+SQL I have always used ASP+ACCESS to write web pages. I have never used stored procedures. All additions, deletions, and modifications are written in ASP to execute programs. There is a lot of code. There is no feeling when the data volume is small, and it is quite fast. But when the data volume is large, I will record and query it. Especially when the page is not displayed on a page, the situation occurs. The speed is very slow and it takes more than 10 seconds to react.
1. Single quotes : Just like learning Chinese class, the quotes that continue to be placed in double quotes can be used in single quotes.response.write(Iamhere)
2. The double quotes in ASP can be any characters or strings , HTML code
1.<%response.write(Iamhere)%><%response.write(cnbrucehere)%>
2.<%response.write(<b>Iamhere</b>)%>
3. <double quotes are close to match. If there are single quotes AND connectors included and join will be <delayed quotes>>response.write(Iamhere)
Because the front quotation marks of color and the front quotation marks of write form a match, the content is Iamhere. The final result is: #0000ff in the middle is lonely
<%response.write(<fontcolor=�ff&>Iamhere</font>)%>
<%
response.write(cnbruce)
%>
3. The main function of the & number in ASP is to connect , including: string-string, string-variable, variable-variable and other mixed connections.
<%
mycolor=#0000ff
response.write(<fontcolor=&mycolor&>&cnbruce&</font>)
%>
<%
mycolor=#0000ff
response.write(&cnbruce&)
%>
Key writing method of <variable keeping> in single quotes (not used in double quotes): <Continue to add left and right variables in ASP and include>, and you can put them in the quotation marks of response.write, and the effect is: response.write(&mycolor&)
Note: asp<output response mainly processes variables, strings, and html code> (single markers can be processed as strings)
response.writea
response.write(a)
The same output is the <string a,>
The response.write(a) and <%=a%><%=a%> output the value of the variable a
Share: Analyze date formatting issues in Asp For the date stored in the date and time type field of the access database, the effect of reading the display directly from the database is time-sensitive, such as 2009-06-1318:00. What should I do if I just want to display the date? Vbscript has a function FormatDateTime(). It is described as follows: Returns the expression, which has been formatted as a date or time. For