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 =

ASP encryption and decryption program

Class Base64classrem ConstDim sbase_64_characters ' Conversion CodeDim lenstring ' Computes the length of a stringDim icount ' CounterDim ReturnValue ' return ValueDim Tempchar ' Cached charactersDim temps Tutorial Tring ' cache stringDim

SQL security filtering function ASP SQL anti-injection function

chr

Public Function safesql (str)Dim TempStrTempStr = Trim (LCase (str))If TempStr = "" or IsNull (TEMPSTR) or IsEmpty (TEMPSTR) ThenSafesql = ""Exit FunctionEnd IfTempStr = Replace (TEMPSTR,CHR (0), "")TempStr = Replace (TEMPSTR,CHR (), "")TempStr =

The legality procedure of ASP checking email

function IsValidEmail (email) Dim names, Name, I, C IsValidEmail = True names = Split (email, "@") If UBound (names) <> 1 Then IsValidEmail = False Exit function End If For each name in names If Len (name) IsValidEmail = False Exit function End

ASP +access generate XML document instance code

Dim sSQLDim rsDim ScrlfDim sxmlclearDim srssheadDim srssendSCRLF = Chr &CHR (10) ' Carriage return + linefeedSxmlclear = sxmlclear & ' & ScrlfSrsshead = "" & SCRLFSrsshead = srsshead & "" & ScrlfSrssend = ""Response.charset= "gb2312"

ASP parsing xml file

ASP parsing xml file Sub GetUserInfo ()Dim Rs,sqlXmldoc.loadxml "dvbbs0 "SQL = "SELECT top 1 * nc_user WHERE username= '" & Newasp.checkbadstr (UserName) & "'"Set Rs = Newasp.execute (SQL)If not rs.eof and not rs.bof

ASP Operation XML

Description of the ASP's classes that manipulate XML:Can complete the ASP to the XML node add, delete, modify, empty.For the above operation, according to the conditions, the operation type includes: Only the first one meets the condition, and all

ASP operates XML files on the server side via XMLDOM

For small amounts of data, XML files have many advantages in retrieving updates on access. I have tested the use of the database, the site's membership information, merchandise data information, transaction information, Web site customization

Some common questions about ASP (IV.)

1. How to pull the scroll bar, the background image does not move? Answer: 2.SQL Server database, want to use the OLE DB database, please you shrimp advice, how Lian Ah? Answer: Set Cn=server.createobject ("Adodb.connection") Cn.provider= "SQLOLEDB"

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

In ASP + Form, check whether the information is correct

Today's commercial websites, or personal websites, all have customer surveys. User registration and other things will inevitably use forms. Are these forms correct, it is obviously controlled by writing code. I admit that writing code is an

Use ASP to build your website News and Publishing (4)

In the previous section, our news system has been able to add and delete news online, but this is not enough, some users may need to find related news entries in a previous topic. However, a News system that is better than others can't help but

Create a paging program using ASP

Create a paging program using ASPWodeail · CPCW     Are you worried about the tedious work of repeatedly linking previous pages and next pages for the sake of too many articles on your site? Now with ASP, as long as your homepage Supports ASP, you

ASP button menu creation instance

The button menu can be seen on many websites, such as Microsoft's SQL Server website. When you move the mouse over the menu button, it will float and press the mouse button to sag down. The following figure shows the actual effect of this menu. On

Use ASP to develop online chat rooms

Network friends who often make waves on the Internet may be afraid that few will not go to the chatting room.You only need to stay a little bit, and then you will find that most of the chatting rooms use CGI program or JAVA-based Applet

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 Upload progress bars reflect the upload status in real time

Asp when using components to upload, a little trouble is not know the upload progress is how much, although some provide the upload progress bar, such as abcupload (Download Address: http://www.websupergoo.com progress ), it is a progress page

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.

Use ASP to generate image color verification codes

Use ASP to generate image color verification codes49 lines of code, three filesAsp File: Code. AspData File: body. Fix, Head. FixDownload: download the packageUsage: Option ExplicitResponse. buffer = trueNumCodeFunction NumCode ()Response. Expires =-

Total Pages: 1800 1 .... 1471 1472 1473 1474 1475 .... 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.