I. Use loadvariables
An example briefly describes how to send a request to ASP on the server through the get method:
CopyCode The Code is as follows: _ root. pushaction = function (URL ,){
This. loadvariables (URL, "get ");
}
VaR ask = true;
VaR
A = "Japan is a province in China | our beautiful Chinese Zhangjiajie! "
B = "China, US, Zhangjiajie, Japan, US, Apple"
B = Split (B ,",")
A = Split (a, "| ")
For k = 0 to ubound ()
S = ""
N = ""
For I = 0 to ubound (B)
If instr (A (K), B (I)> 0
If a large number of applications are used in the website, it will occupy a large amount of server resources. Therefore, when we exit the background, we can clear the data and the website will run faster.
Application Object implementation in a
Conversion functions of URLs and email addresses
Function urlconvert (STR)
Convertstr = Str
Urllocation = instr (convertstr, "http ://")
If (urllocation = 0) and (maillocation = 0) thenUrlconvert = convertstrExit FunctionEnd if
If urllocation <
I believe everyone has this experience: there is a link on the page pointing to a Word file on the server, when the client machine has installed the office, click the link to call word to open the browser; when the client machine does not have
I use textarea to submit a large amount of data.
Mediumtext is selected as the field type and data is lost.
Later I changed it to longtext, and the data is still lost,
In addition, it is found that the data volume submitted to the database is the
Methods to prevent data from being submitted from external sources
First, SHIELD special characters and keywords
Fqys = request. servervariables ("QUERY_STRING ")
Dim nothis (18)
Nothis (0) = "Net user"
Nothis (1) = "xp_mongoshell"
Use XMLHTTP to retrieve data from other pages
We are writing ASPCodeWe all know that we can get form data through post or get. How can we directly obtain data on other pages? This requires the help of the XMLHTTP protocol. XMLHTTP is part of
Click the "OK" and "cancel" prompts
Onclick = '{If (confirm ("are you sure you want to delete it? This operation cannot be restored! ") {Return true;} return false ;}'
Delete the. LDB FileApplication. Contents. removeall ()%>
Convert HTML
Excel is a software in Microsoft's office suite. It is mainly used to process workbooks. Excel is welcomed by our office staff for its user-friendly interface and rapid data processing. Therefore, many documents are saved in Excel format.
'*************************************** ***********************
'-------------------------------------------------------------'First Parameter'It Can Be A table name or an SQL statement'-----------------------------------------------------------
First, we need to understand
CINT range:-32,768 to 32,767.The range of clng is-2,147,483,648 to 2,147,483,647.
Meaning of CINT and clng:
You can forcibly convert an expression to a data type.
CINT and clng:
CINT integer-32,768 to 32,767,
Development Environment: vs2005 + ASP. NET Ajax 1.0 RC
First download the Installation File of ASP. NET Ajax 1.0 RC. After installation, we can start our Ajax journey.
1. open vs2005, click "new"-"file"-"website", and select "ASP. net-Ajax
1. It is not recommended to support Asp.net on the server where the master node is installed, because ASP. NET has a large number of unknown security issues.
2. If you need to use Asp.net to write files or directories, add the following
Upload. aspx
CopyCode The Code is as follows:
Multifile upload
Multifile upload
Width = "500px" borderstyle = "NONE" bordercolor = "white">
Upload. aspx. CS Copy code The Code is as follows: using system;Using system.
Put the following
Code Save as an ASP file. Of course, I am still BS guys who only change the author's name.
Copy code The Code is as follows: '============ ASP port export by lake2 ======================================
'Http: //
1. General Virtual Hosts implemented using adodb. stream provide
Copy codeThe Code is as follows: function loadtempletfile (byval path)
On error resume next
Dim objstream
Set objstream = server. createobject ("adodb. stream ")
With objstream
. Type =
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