How to Implement ASP keyword string segmentation

I want to make META keywords, such as my title display ASPCodeYes: If the final title is displayed, such as "How to Implement string segmentation ?"I want to divide a string by two Chinese characters, for example, "character, character string,

No incorrect version of ASP implementation cache class

'*************************************** ******* 'Vbs cache class 'Attribute valid, available or not, pre-determined 'Property name, cache name, assigned value after new object 'Method add (value, expiration time), set the cache content 'Attribute

Examples of multiform fields and component-less File Uploads in ASP

I have been asked this kind of question recently. Here I will post it with the following content: 1. Database Table Structure (ACCESS ): Userid: Text (User ID for saving the uploaded file) Filecontenttype: Text (used to save the type of the

Code for implementing Static Page paging using ASP + Ajax

Recently, due to work needs, we have to implement paging on static pages. After thinking about it, we decided to use ajax to implement it. So we have made a fuss about the following: CopyCode The Code is as follows: Ajax static paging

Simple multi-query methods and functions under ASP are really good

ASP simple multi-query Solution CopyCode The Code is as follows: 'subject information title Name of the company whose company information is published 'Content content 'Address company address 'Infomation Company Profile 'Note The preceding values

Use ASP to generate telephone image online. The script is provided for demonstration.

Purpose: generate an image format for the phone number on the page. CopyCode The Code is as follows: Call com_creatvalidcode (request. querystring ("tel ")) Public sub com_creatvalidcode (ptel) '---------- Disable cachingResponse. expires =

Asp xmlhttp component packet sending

Asp xmlhttp component packet sendingWrite a thief function, pay attention to the red Code Part. Add others by yourself!Function posthttppagefrom (httpurl, stra, fromurl)Dim HTTPSet HTTP = server. Createobject ("msxml2.xmlhttp ")HTTP. Open "Post",

ASP prevents spam messages

Server_v1 = CSTR (request. servervariables ("http_referer ")) Response. Write (server_v1) Server_v2 = CSTR (request. servervariables ("SERVER_NAME ")) If mid (server_v1, 8, Len (server_v2) <> server_v2 then Response. Write "prohibit external data

Intrusion into the Asp.net website with code

1, For websites with. net Generally, a user is registered. First, we chose to use the upload judgment vulnerability to add the image title gif89a. 2,The second method is injection? Id = XX followed by single quotes "'"In general, you can use

ASP paging (self-organized two paging programs)

Asp PagingProgram name password Set rs = server. Createobject ("ADODB. recordset ")Conn = "DBQ =" + server. mappath ("Zheng. mdb") + "; defaultdir =; driver = {Microsoft Access Driver (*. mdb )};"SQL = "select * from user" Rs. Open SQL, Conn, 1

Code for generating JS files using FSO in ASP

Set FSO = server. Createobject ("scripting. FileSystemObject ") Set FD = FSO. createtextfile (server. mappath ("../category. js"), true) 'Start OperationSet rs = server. Createobject ("ADODB. recordset ")Rs. Open "select * From dept_category",

Very useful ASP backup, restoring SQL database code

Select Operation: Backup restore Database Name: "> File Path: (Path of the backup or recovery file) 'SQL Server database backup and recovery! If request ("action") = "backupdatabase" then Dim sqlserver, sqlname, sqlpassword,

Number of rows in a loop under ASP

Set rs = server. Createobject ("ADODB. recordset ") SQL = "select * from friend order by ID DESC" Rs. Open SQL, Conn, 1 I = 1 Do while not Rs. EOF %> " target = "_ blank"> "class =" framed "width =" 88 "Height =" 31 "alt =" "/> If I

ASP + Access

I wrote it for fun. I didn't expect it to be followed by people asking, so I changed it.Code, Improved, supports regular expression replacement, avoids binary (OLE object) that may cause errors, and implements an EXEProgram. Thank you for your

A common ASP injection prevention script

Put it in conn. asp. 'Block attacks through the address barUrl = request. servervariables ("QUERY_STRING ")If instr (URL, ";")> = 1 thenUrl = Replace (URL, ";", ";"): Response. Redirect ("? "& URL)End if'Shield form-based attacksFor each item in

Powerful ASP template class code attachment download page 1/4

This class supports loop replacement, nested loop replacement, and multiple templates. Class Code I will not post it. I will download it later and only paste the Demo code. I. The template has only one cyclic block.Template File main code

Page 1/2 of ASP. NET + XML operation base class (modify, delete, add, create)

/*************************************** **************************************** *** * * Function Description: XML processing base class * Author: Liu gongxun; * Version: v0.1 (C #2.0); time: 2006-12-13 * **************************************** ***

Analysis of ASP one-sentence Trojan

Access through HTTP One-sentence Trojan (I only list two categories ): 1) only database backup is available.When the database is backed up as an ASP file, no "Compilation error is displayed, and the script close flag is missing. %>" 2) When

Common ASP system configuration functions

Sub SaveConfig () Dim fso, hf Set fso = Server. CreateObject ("Scripting. FileSystemObject ") Set hf = fso. CreateTextFile (Server. mappath ("../inc/config. asp"), true) Hf. write "Hf. write "Const SiteName =" & chr (34) & trim (request

ASP controls the number of lines printed per page

Pagenum = 55' specifies the number of rows to print%> sales profit Details report printing Kdname1 = trim (request ("kdname1 "))Kdname2 = trim (request ("kdname2 "))Keyword1 = trim (request ("keyword1 "))Keyword2 = trim (request ("keyword2 ")) If

Total Pages: 1800 1 .... 1728 1729 1730 1731 1732 .... 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.