Collect ASP's Common functions _ Application techniques

Copy Code code as follows: function HTMLEncode (fstring) If not IsNull (fstring) Then fstring = replace (fstring, ">", ">") fstring = replace (fstring, " fstring = Replace (fstring, CHR (32), "") fstring = Replace (fstring, CHR (9), "")

Two applications of ASP intercepting strings [Original]_ application techniques

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>=

ASP implements two methods to prevent the content from outside the station _asp Foundation

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

ASP upload image function of another implementation (OLE Object) _asp Foundation

ole

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

Introduction to ASP Programming (18): FSO Component file operation (top) _asp Foundation

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,

About the ASP to generate pseudo parameter technique _ application Skill

md5

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

Introduction to ASP Programming (16): FSO Component drive Operation _asp Foundation

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

Introduction to ASP Programming (15): Component Counters_asp Basics

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

Introduction to ASP Programming (12): ASP skills Accumulation (i) _asp Foundation

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

ASP most commonly used pagination function _ Application technique

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

Introduction to ASP Programming (i): Install Configuration Server _asp Basics

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

Implementation of URL coding _asp based on ASP

chr

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.

In ASP, the request object obtains the order of the client data (easy to ignore) _asp Foundation

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 =

Asp. NET global variable settings and read methods _ Practical Tips

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

Examples of inheritance and polymorphism for asp.net beginners-practical tips

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

Wind full series of operator number of the ASP program _ Common Tools

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:

Asp. NET in the implementation of template page _ Practical skills

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

Using JS in ASP encodeURIComponent method _ Application Technique

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

A summary of several algorithms for calculating the total number of pages in ASP page-application Tips

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: '

ASP get parameter value and SQL Security filter parameter function code _ application technique

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

Total Pages: 1800 1 .... 1076 1077 1078 1079 1080 .... 1800 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.