19 Basic Tips for ASP

1. The present date Time command is can The 2.ASP method for obtaining data entry from a form is to use a built-in object (-requect). It varies with get,post. 3. If you want to write your own VB or other language, the. dll file should be registered

ASP hidden download address and anti-theft chain code

Strfilename=strfileResponse.buffer=trueResponse.ClearSet s=server.createobject ("ADODB. Stream ")S.openS.type=1On Error Resume NextSet fso=server.createobject ("Scripting.FileSystemObject")If not fso.fileexists (strFileName) ThenFrom_url=cstr

ASP Generation Verification Code program

Option Explicit Response.buffer=true Response.Expires =-1 Response.ExpiresAbsolute = Now ()-1 Call Com_creatvalidcode ("GetCode") Sub Com_creatvalidcode (PSN) ' Author:layen ' qq:84815733 ' E-mail:support@ssaw.net ' Disable caching Response.Expires =

Tetris game written in ASP

**vbscript Tetris Game **

ASP common database connection and operation method and skill

1.ASP connect to an Access database Dim conn,mdbfile Mdbfile=server.mappath ("database name. mdb") Set Conn=server.createobject ("Adodb.connection") Conn.Open "Driver={microsoft Access Driver (*.mdb)};uid=admin;pwd= database password; dbq=" &mdbfile

SQL statement generation Custom function in ASP

The code is as follows Copy Code Class SqlString'************************************' Variable definition'************************************' sTableName----table name' isqltype----SQL statement type: 0-Add, 1-update, 2-delete,

A super Simple ASP Generation Verification Code program

Sub GetsafecodeDim Test,resultOn Error Resume NextSet Test=server.createobject ("ADODB.stream")Set test=nothingIf Err ThenDim znumRandomize TimerZnum=cint (8999*rnd+1000)Session ("Safecode") =znumResult=session ("Safecode")Elseresult= ""End

ASP Web Trojan Prevention Program

ASP Web page Trojan prevention Program We can prevent shell commands from doing that.Dim OscriptDim oscriptnetDim Ofilesys, OfileDim Szcmd, SztempfileOn Error Resume Next--Create the COM objects that we'll be using--Set oscript =

ASP generation Verification Code Instance code

ASP tutorial to generate the code instance of verification code Call Com_creatvalidcode ("Validcode")Sub Com_creatvalidcode (PS tutorial N)' Disable cachingResponse.Expires =-1Response.ExpiresAbsolute = Now ()-1Response.CacheControl = "No-cache"'

ASP implementation method to prevent duplicate submission data

The code is as follows Copy Code Session (' Time ') =now ()Const a= #0:0:4# ' defines the number of seconds between intervalsIf session ("Time2") >0 then ' if a valueIf session ("Time2") +a > Sessions ("Time") Then 'Session ("Time2")

ASP intercepting string function code (filtering HTML tags)

function Imgstr (str)Dim regexSet regex = new RegExp ' establishes a regular expression.Regex.pattern = "]+) {1} [^<>]*> (]*) (src=) (' | ') &CHR (&) | )? (. [^ ' |s| ' &CHR (& "]*)" (.) (Jpg|gif|png|bmp|jpeg) ('|" &CHR (& "|s|>") (. [ ^>]*) (>) "'

ASP access the method of paging the large amount of data

' This sub-page effect support ' pagination, pagination effect: Home prev ... 2 3 4 5 6 7 ... Next last page This paging mode, has the forum style' ID title content status updatetime' 1 T1 C1 1 2010-5-26 21:16:06' 2 T2 C2 1 2010-5-26 21:16:09' 3 t3

Tips for improving ASP applications (1)

ASP is Microsoft's launch of a server-side command execution environment, which allows you to easily create interactive Web applications. As one of the most widely used technologies for developing Web servers on NT platforms, its emergence replaces

Application of string functions in ASP

Application of string functions in ASP--------------------------------------------Author: enlightenedSource: Program Design AllianceHttp://www.pgsun.comEMAIL: liuyong8833@sohu.comWelcome to learn and exchange!-----------------------------------------

ASP errors

This is a simple paging program. The code is as follows: test page Dim all, cnt, page, digDig = 10' entries per pageAll = 100 'total display entriesCnt = 1Page = Request. QueryString ("page ")Pagenum = all/digResponse. Write ("pagenum =" & pagenum &

Unveil ASP secrets (4)

Application object     Author: mi Xiansheng     1. Set of Application objectsIn the Application, there are two sets of Contents and StaticObject. You can use these two sets to control whether variables and objects are visible in the entire ASP

Unveil ASP secrets (5)

Session object     Author: mi Xiansheng     We can use the Session object to store the information required for a specific user Session. When a user jumps between pages of an application, the variables stored in the Session object are not cleared,

How to call stored procedures in ASP

1. This is also the simplest method. Two input parameters have no return value:Set connection = server. createobject ("adodb. connection ")Connection. open someDSNConnection. Execute "procname varvalue1, varvalue2"'Clear all objects as nothing and

ASP anti-theft code for local images and music

'Define the function and use ADODB. Stream to read binary data.Function ReadBinaryFile (FileName)Const adTypeBinary = 1Dim BinaryStreamSet BinaryStream = CreateObject ("ADODB. Stream ")BinaryStream. Type = adTypeBinaryBinaryStream. OpenBinaryStream.

Total Pages: 1800 1 .... 1311 1312 1313 1314 1315 .... 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.