The Active server Pager (Dynamic Servers home page, abbreviated as ASP) can easily implement page counter functionality by reading and writing server files, combining the script language (VBScript or JScript) and HTML code. Now popular ASP textbooks
If IIS is later installed, you need to first. NET executes the aspnet_regiis-i in the command tool, installs the ASP. NETFramework
Then check the configuration below:
If IIS is not installed later, check the following configuration directly:
1.
The code is as follows
Copy Code
Call Com_creatvalidcode ("code") Sub Com_creatvalidcode (PSN)' Disable cachingResponse.Expires =-9999Response.AddHeader "Pragma", "No-cache"Response.AddHeader "Cache-ctrol", "No-cache"'
In this tutorial, we will use Microsoft's XMLHTTP Request object's Web page remote address from our server. This object is contained in Microsoft's XML DOM component, which may be installed on your server.The traditional Microsoft XMLHTTP object is
Can I include files dynamically?
April 23, 2001
What is dynamic include?
Answer
Let's start with one case:
' Get the province where the user is
Dim Province
Province = Request.Form ("province")
' The information in this province is shown below
%>
"--
Using Global.asa correctly is a common problem for ASP developers. The main thing is to know when to use virtual application, when to use virtual directory, and to know their differences.
Virtual directories (dummy directory)
In short, virtual
Do not change the original character display!such as select* replaced by & #115; elect*This will not damage the data, but also safe!Where I didn't think of it, please correct me.
Response.Write checkrequest ("str")
' ===============================
ASP authentication Code Source code
Call method, is b.htm page
Update
Let's save the following page as a 111cn.asp
Option ExplicitResponse.Expires = 0Response.AddHeader "Pragma", "No-cache"Response.AddHeader "Cache-ctrol",
'==================================================' Function name: GetArray' Function: Extract link address, separated by $array$' Parameter: Constr------Extract the original character of the address' Parameter: startstr------start string'
'================================================' By KANGK.L' Date 2006-04-07' Program Name Kangk PAGEAC' Class Name CLS_PAGEAC'''---------Property Let--------' listhtml list looping Template: Character type, HTML code and substitution tags '
Dim ip_address,ip_rs,cip,ip_conn,ip_connstr,ip_province,ip_cityConst datatype=1 ' 0 is an Access database, and 1 is a SQL Server databaseConst mdbpath= "Ip_address.mdb" ' If it is a SQL Server database, this entry is left
'----------------------------------------------------------------------Dim Oupfilestream'----------------------------------------------------------------------' File Upload classClass Upfile_class
Dim Form,file,version,err
Private Sub
Dim ip_address,ip_rs,cip,ip_conn,ip_connstr,ip_province,ip_city,rs,ip_py Const datatype=0 ' 0 is an Access database, 1 is SQL Server database Const mdbpath= "/ip/ipaddress.mdb" ' If this is a SQL Server database, leave
View system logsThe iis server cannot load the application '/lm/w3svc/1/root/test '. Error: 'No registered categoryMicrosoft windows xp [Version 5.1.2600](C) Copyright 1985-2001 microsoft corp.C: documents and settingsadministrator> cd % windir %
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