This is just an ASP tip class thing, although it is suitable for each of the different file names call this function, but there are prerequisites, let's take a closer look at the story.
The following section is the basic page-splitting code:
<%
----------------------------------------------------------------------------------------
Random Picture Display ****************************
Use instance: img.asp?list= Picture Storage Directory
Use Note: The picture catalogue is placed in the same
How to better achieve the prevention of hacker attacks, I mention personal views! First, the free program does not really have to be free of charge, since you can share the original code, then the attacker can analyze the code. If you pay attention
15 very useful examples in programming ASP programming
Enet College
1. How to use ASP to determine the virtual physical path of your website
Answer using the MapPath method
The physical path to this virtual website is:
2. How do I
Web page
To use the ServerVariables property of the Request object, it is used to obtain the value of the environment variable. The syntax used is: request.servervariables (variable), "variable" means the name of the environment variable, such as
Attack
SQL injection attacks are exploited by means of design vulnerabilities, running SQL commands on the target server, and other attacksThe main reason for SQL injection attacks is that the data entered by the user is not validated when the SQL
ASP in the most headaches is the debugging process is inconvenient, I think many friends will use such a method "Response.Write", and then output related statements to see whether the correct. A few days ago wrote a thousands of lines of the page,
Request
Discussion of Request object
Request is an internal object in an ASP to get any information (such as header information, form data, cookies, and so on) that is passed in an HTTP request. So this is the most commonly used internal object in
Efficiency | page-type
'=====================================================================' Papgesize defines the number of records per page of pagination' Getrs Returns a paging recordset this property is read-only' Getconn get a database
Script | When data is submitted, someone may modify the script to submit it locally, so there is a security commit issue, so it should be required to commit from a server-broken path, and no other address submission is invalid:
Server_v1=cstr
And reader the strange, up such a nondescript name, rather than "ASP preliminary (Introduction, Foundation)", for two reasons: a fear of too corny, but more important is afraid of many wandering in the ASP threshold outside the home made group even
When doing an ecommerce site, the browser is often asked to convert between HTTPS and HTTPBelow I give the corresponding code:
To have an ASP page start with HTTPS, add the following code at the top of the ASP page:
Response.Buffer = TrueIf
In some cases, you may want to make your home page or a page open only for a specific period of time, or only to a specific audience, then use the ASP technology can be easily handled. Do not believe??? And listen to my one by one coming.
First,
I. Fill in the form page: " >On the Submit processing page, set the submission timeThe code is as follows:If DateDiff ("s", Request.Form ("intime1"), now ()) Response.Write ""Response.EndEnd If
Two. Verification codeThe code is as follows:YZ=CSTR
Anti-Theft chain If we know the actual path of a static file such as: Http://www.xx.com/download/51windows.pdf, if the server does not make special restrictions, we can easily download it down! When the site provides 51windows.pdf download, how to
Source Code | cheating | Voting system This is the previous page of the voting code. Click on this page to vote.
Response.Cookies ("cook") = "yes"
%>
Here is the voting page code
ifRequest.Cookies ("Cook") <> "yes" then
Response.Write "
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.