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), "")

ASP filter Ubb and HTML tags _ application Tips

The content we store in the database is in HTML format, but sometimes we need to display this content in a unformatted format, which is filtered with regular expression implementations. Copy Code code as follows: function nohtml (str) Dim

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. NET pagination Navigation instance _ practical Tips

ASP.net paging allows you to set page-first, previous, next, last-link text displayed in the foreground. This is simply a reference to simple functions, and it is more handy to delve into the fundamentals of it. Containerid the destination

Hand-written widgets (Getting started) ASP version _ Application Tips

Start writing a team piece (get started with components) This article is mainly for the people who want to improve their ASP level to write! The ASP code into a component, the developer is not only to speed up the ASP, but also to protect their own

Code for using disconnected data recordsets in ASP programs-application Tips

Therefore, to conserve server resources, the connection should be shut down as much as possible to free up resources for the connection, and the technique of shutting down the recordset without closing the recordset is called a disconnected

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. NET Getting Started data article _asp.net

For the website programming beginner, always will surf the net to look for some source code to look, but in the passage of time or stay in the phase of the change, do not understand how to write a complete Web site program. So I began to write such

Capture and save ASP Run Error function code _ Application Tips

Procedure name: catch (str) How to use: Copy Code code as follows: On Error Resume Next ' Your code, such as a database connection Call catch ("message displayed to the user") Features: Clear IIS error messages, custom

ASP Application template adopts _asp Foundation

Beginner ASP, the program is able to write out, but if each site page of the revision, all the source program will carry out a transplant operation. To this end, the human energy consumed countless, or even inadvertently gains, naught. So, dream of

Introduction to ASP Programming (21): DAO SQL Build database table _asp Foundation

Are you satisfied with the database you designed for yourself? Are you sure you don't want to deal with it? For example, create a new database table, such as creating or modifying a field ... Of course, these are all part of the design database. So,

The specific code-application techniques implemented by this calendar algorithm in ASP

Copy Code code as follows: ' The following is the specific code implemented by this calendar algorithm in ASP ' First decide whether to specify a year and month, no to display according to the current year and month If Request

Introduction to ASP Programming (20): ADO Component Modification Data recording _asp Foundation

A little summary: the operation of the database is nothing but displays records, inserts records, modifies records, deletes records, and queries records. And when it comes to displaying records, it's also about display output format, paging

Save/Remove pictures in asp.net/from SQL database _ Practical Tips

One, the picture into the databaseUse the following knowledge in several aspects:1. Using streaming objects2. Find the size and type of pictures you want to upload3. How to use the InputStream method necessary conditions for inserting picturesThe

ASP database Anti-Download processing _ Application Skills

Copy Code code as follows: Db= "Market.asp" is changed to your database address Set Conn=server.createobject ("Adodb.connection") Connstr= "Provider=Microsoft.Jet.OLEDB.4.0;Data source=" &server.mappath (db) Conn.Open ConnStr Conn.execute ("

Introduction to ASP Programming (19): ASP skills Accumulation (ii) _ASP Foundation

Strict Control session You can move content that does not require a session (such as Help screen, visitor area, and so on) to a stand-alone ASP application that closes the session. On the underlying page, you can give the ASP an indication that it

ASP+FSO online Management picture features [Original]_ application Tips

Copy Code code as follows: '--------------------------------------------- ' ############# #20060528新增加了对端口的支持 ' Author: DXY qq:461478385 email:douxy001@gmail.com ' Function perfect %> Set myfile=server.createobject

ASP.net 2.0 preset cookie_ practical tips

This morning in the foreigner's blog to see this statement, may wish to pay attention to: If you use FormsAuthentication in asp.net 2.0 and you set the cookie to a persistent state, the duration defaults to 30 minutes, not the 50 in ASP.net 1.1,

asp.net WebForm Page Transfer method _ Practical skills

asp.net WEB FORMS provides developers with an excellent event-driven development model. However, this simple application development model brings us some minor problems, for example, in a traditional ASP application, you can easily transfer one

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,

Total Pages: 1800 1 .... 1417 1418 1419 1420 1421 .... 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.