1, the Pure intercept string
Copy Code code as follows:
function Cutstr (Thestr1,strlen)
Dim l,t,c
L=len (THESTR1)
If LT=0
For Dxy1=1 to L
C=abs (ASC (thestr1,dxy1,1))
If c>255 Then
T=t+2
Else
T=t+1
End If
If T>=
Mode one:
Copy Code code as follows:
Function Isselfrefer ()
Dim Formurl,relurl
Formurl=lcase (the Trim (request). ServerVariables ("Http_referer"))
If formurl= "" Then
Isselfrefer = False
Else
Relurl= "http://" & Trim
The last mention of the upload image is adopted by the old Farmer's development of the component-free upload. The upload process is to save the picture to the specified folder, while saving the path to the database field. The display picture is
FSO In addition to the drive, folder operation, the most powerful function is the operation of the file. It can be used for counting, content management, searching, generating Dynamic HTML pages, and so on.
first, FSO. OpenTextFile
Needless to say,
Author: pure Impression
Q q:442398600
August 8, 2006
The first two days in a station version of the enterprise search engine, found that some sites can link site content.
Strange under Look, the original is according to the database ID automatic
FSO, as exciting as the UFO, fascinating, of course, more people are happy to let people worry. You do not see a space service provider advertising: 100MB space as long as 60rmb/years, supporting the database, support what what ... A question does
This component is used to create one or more counters that track information about the number of visits to a Web page or a Web site. You can only create one counter component, but the component may have more than one counter.
Once the counter has
One, on Error statements
The purpose of this statement is to enable or disable an error handler. The general usage is as follows:
On Error Resume NextOn Error GoTo 0
If you are in your code
not usedOn Error Resume Next
Copy Code code as follows:
Rs.Open sql,conn,1,1
If rs.eof and Rs.bof then
Response.Write " haven't found article "
Else
Totalput=rs.recordcount
Maxperpage=18
If CurrentpageCurrentpage=1
End If
if (currentpage-1) *maxperpage>totalput
I have a limited level of negligence, it is inevitable that the omission of the place, but also hope that everyone criticized, this first thanked.
Introduction to ASP Programming (i): Installing a configuration Server
Since ASP scripting
URL encoding means that in order to transfer information through the URL, some characters that have special meanings must be replaced by a coding method, in the ASP we all know that there is a server.urlencode function to complete this function.
The request object in ASP is a very important object to get the client to submit the data, everybody is very familiar to him too. Even so, people often ask me how the following kinds of writing are different, in the end how to write?
strmessage =
This article describes how global variables are used in two asp.net projects. web.config files and gloab files. The following are described separately:
Method One: Web.config file
--Settings:
Adding the keyword key to the web.config file is done
I learned asp.net soon, using C # to write code, in the study of C # found many beginners to inheritance and polymorphism is not a special understanding, so this example, I hope to help you, the example is very simple
Paging File
Copy the code now, save it as a zc.asp file and put it in the root of the Web site and then visit it.
Let's have a try, this is what I see elsewhere.
Because I do not have the process of hearing the wind.
Copy Code code as follows:
Programmers who have used javastruts should know that there is a template tag in struts that, although it is more complex to use, has a lot of convenience for programs with a large number of pages. However, there is no out-of-the-box implementation
You know, in JS encodeURIComponent method is a more commonly used encoding method, but due to the work needs, in the ASP need to this method, check a lot of information, there is no good method, and finally used the following method, the basic
Here's how to calculate the total number of pages when I find three ASP pages from the Web, this method calculates the total number of pages when paging, not the entire paging code:
Method One
Copy Code code as follows:
'
Copy Code code as follows:
' Get parameter values
Function GetForm (Element,ftype)
Select Case Ftype
Case "Get"
Getform=trim (Request. QueryString (Element))
Case "POST"
Getform=trim (Request. Form (Element))
Case "both"
If Isnul
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