Collection of fine Code
1. oncontextmenu= "window.event.return& #118alue =false" will completely screen the right mouse buttonno available for table2. deselect, prevent copying3. onpaste= "return false" is not allowed to paste4. oncopy= ' return
Visit | Statistics We know that Request.ServerVariables ("Http_referer") can get the address of the source Web site, so we can do a small source access statistic from this data
Create a new database sys_referer:
if exists (SELECT * from
Programming how to use ASP to determine the virtual physical path of your Web site
Answer using the MapPath method
The physical path to this virtual website is:
2. How do I know the browser used by the user?
To use the Request object method
Response.buffer=true ' Sets the output cache for displaying different pages.
On Error Resume Next ' Ignores program error section
If Request.ServerVariables ("request_method") = "Get" Then
' Determine how the customer requests the WEB page
'---------
ASP hidden download address and anti-theft code
The following are the referenced contents:Strfilename=strfileResponse.buffer=trueResponse.ClearSet s=server.createobject ("ADODB. Stream ")S.openS.type=1On Error Resume NextSet
Beginners | mistakes
example of error checking in ASPThere is a program that is to add and remove elements from the application collection, as follows:
the Application object
the ASP application
If Len (Request.Form ("Cmdadd")) Then ' use
IP address Private Function getip ()
Dim stripaddr
If Request.ServerVariables ("http_x_forwarded_for") = "" OR InStr (Request.ServerVariables ("Http_x_forwarded_for"), " Unknown ") > 0 Then
STRIPADDR = Request.ServerVariables
This article illustrates an ASP's two simple examples of detecting external submit functions, the first function is Chkpost (), which detects whether the user's current server name exists on the source page, and the second function is Postcheck (),
Tips | page ASP (Active Server page) provides strong technical support for making dynamic pages. In an ASP page, you can have multiple submit buttons to submit different data, perform different operations, and these all return to the same ASP page.
The following are the contents of the reference: Strfilename=strfile response.buffer=true Response.Clear Set s=server.createobject ("ADODB. Stream ") S.open s.type=1 on Error Resume Next Set fso=server.createobject
20 very useful examples in programming ASP programming
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 know the browser used by
online.asp file
The following are the referenced contents:Onlinetimeout=10 ' defines the time interval for online activity timeFunction Userip ()Getclientip = Request.ServerVariables ("http_x_forwarded_for") ' "," "'", "'", "" "", "" ","
Asp.net|stream| object in front of me I introduced the file manipulation object in System.IO space, here I explain how to make a counter that applies to a particular page. Each counter requires a corresponding file to store the current amount of
Now, on the Internet to do a survey is very common, many commercial Web sites often have a variety of theme of the survey Board, some commercial sites are free to provide users with research boards, such as: Broad (poll.bodachina.com). Because of
1. oncontextmenu= "Window.event.returnvalue=false" will be Beecher
Bottom Screen right mouse button
no
Available for table
2. cancel
Select, prevent replication
3. onpaste= "return False"
No pasting.
4. oncopy= ' return false; ' oncut= '
If a site is through the following code to obtain IP, then we simply set in the header Http_via and x_forwarded_for, you can achieve the purpose of fake IP
in the network card a random search: asp.net client IPMany pages can be searched, and the
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