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
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
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.
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 (),
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
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
Skills
Tip 21: Enable browser and proxy cachingBy default, ASP disables caching in browsers and agents. This will make sense, because ASPs are inherently dynamic and potentially time-sensitive information. If you have a page that does
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
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
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