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
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
The session object has two events: the OnStart event and the OnEnd event. By scripting These two event procedures, you can perform the specified actions at the beginning and end of the session. When scripting code for these event procedures, you
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
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") ' "," "'", "'", "" "", "" ","
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
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 (),
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
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.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
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
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
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.
File Futils.inc
' True pureasp upload-enables save of uploaded text fields to the disk.
' c1997-1999 Antonin Foller, Pstruh Software, http://www.pstruh.cz
' The Scriptutilities Library
' The file enables HTTP upload to ASP without any components.
'
Control | show | online
Here's what the Global.asa:
Sub Application_OnStart
' Delete All saved sessions information, in case of a crash
Set Objado = Server.CreateObject ("ADODB. Connection ")
Sdatabasepath = Server.MapPath
Original | source code | Bomb window
' Author: Arisisi' URL: http://www.alixixi.com' Description: Welcome to use source Code program, please keep this information.' 24 hours with 1IP only once' Direct input to the Web site does not play' Once you've
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.