First, ASP to create the skills of the object
When we use the server component to create an object,
There are generally two methods. The more common approach is to use the CreateObject () method of the server object, like this:
SET Nextlink = Server.
Save the following code as an ASP file yourself. Of course I'm still the BS, the guy who only changes the author's name.
Copy Code code as follows:
' ============ ASP Port Scanner by Lake2 ===================
' Http://lake2.0x54.org
'
Copy Code code as follows:
' ********************************************
' The following is a database-related function
' ********************************************
' ============================================
' Initializing a database
'==================================================
' Function name: getpaing
' Function: Get pagination
'==================================================
Function getpaing (Byval constr,startstr,overstr,inclul,inclur)
If constr= "$False $" or
'==================================================
' Function name: GetArray
' Function: Extract link address, separated by $array$
' Parameter: Constr------Extract the original character of the address
' Parameter: startstr------start string
'
Using ASP to implement a Web site's directory tree
Database structure (two tables used altogether)
1. Tblcategory
Field Name Type
Root binary description tree off or on (root of directory)
ID Auto Number keyword
The sort integer identifies the
How do I get the names of all the forms in ASP the corresponding value . In fact, the problem is very simple, but there may still be a lot of people do not know how to do, so specially written down for reference only. In an ASP program, the object
The following dotted box is the specific code for the mk.asp file:--------------------------------------------------------------------------------Filename= "Test.htm"If request ("Body") <> "" ThenSet fso = Server.CreateObject
The simplest use of the following statement:
Ip=request. ServerVariables ("REMOTE_ADDR")
Response. Write (IP)
But this method to the proxy server on the Internet is not allowed, so more comprehensive is the following method:
Copy Code code
A business is a series of operations that must be successful, and if one step fails, the other steps must be undone. In fact, in the database system, each SQL statement is a transaction, when executing this statement, either executes successfully,
' Function: Text anti-copying garbled function
' Date:2006-3-6
' Author: blue2004
' Parameter str is the original, str1 author is yourself, Reslut produces garbled seeds
Function Readtocode (Str,str1,result)
Dim name
Dim i,j,k
If isnull (str)
I want to do meta keywords, such as my title display ASP code is: If the end-displayed title such as "How is the string split implemented?" ”I would like to divide the string into two Chinese characters, such as "character, String, string, split,
Some common auxiliary code
Click to return to the previous page code:
Pop-up warning Box code:
Click to open a new window
Pop-up confirmation box when deleting a record:
Close an open window
Close Window
Empty input and
Copy Code code as follows:
Dim Ip,number,mobiletype,loca,uri
Dim Conn,sql,rs
Ip=request.servervariables ("REMOTE_ADDR")
Uri=request.servervariables ("Path_info")
Number1=request.servervariables ("Http_x-up-calling-line-id")
Copy Code code as follows:
Sometimes you want to provide multi-language support for our web pages, and if one language is too cumbersome to do with a single Web page, it is fortunate that Google offers the Language Tools feature, and here's how
ASP simple multi-query solution
Copy Code code as follows:
' Subject Information title
' Company name to release information
' Content to post information
' Address Company
' Infomation Company profile
' Note related
The above
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