Replacing the template tag when FsO generates a static html file has always been a very troublesome problem. At least I think so. Do not create another template. This is troublesome !, I saw a way to solve this problem today.
Such as a normal
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,
This method is used because of some interfaces of mobile dream WAP. The Asp.net version is available next. This is an ASP version, and msxml2.xmlhttp is used.
Request. asp
CopyCode The Code is as follows: dim https
Set HTTPS = server.
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
ASP and stored procedure (stored procedures)
Article Many, but I doubt whether the authors have actually practiced it. I checked a large amount of relevant materials at the beginning and found that many of the methods provided in them were not the
Conversion functions of URLs and email addresses
Function urlconvert (STR)
Convertstr = Str
Urllocation = instr (convertstr, "http ://")
If (urllocation = 0) and (maillocation = 0) thenUrlconvert = convertstrExit FunctionEnd if
If urllocation <
Detailed description of ASP built-in object application
In addition to the objects used to send, receive, and process data, ASP's built-in objects also have some very practical applications that represent the active server.ProgramAnd the object
SQL statement tutorial in ASP
There are so many SQL products that you may have to worry about. However, if you want to use ASP and SQL at the same time, you may feel dizzy. MySQL, SQL Server, and msql are both excellent SQL tools. Unfortunately, in
First
You can call Window Media Player To Play files in formats such as wmv and ASF:
CopyCode The Code is as follows:
Second
It is used to call replayer To Play files in formats such as RM and ram.Play box:Copy codeThe Code is as follows:
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
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
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 =
Some ASP skills and practical solutions
Random Number:
The record keywords obtained when querying data are displayed in Red:
" & searchname & "") %>
Use ASP to check whether proxy is used by visitors
"thenResponse. Write " you have
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",
'Name: ASP universal collection function redundancy edition, which must be edited by the product Edition
'Author: Liu yongfa
'Date: 2007-6-23
Function gethttppage (PATH)
T = getbody (PATH)
Gethttppage = bytestobstr (T, "gb2312 ")
End Function
Calculate two time difference Functions
'******************************'| Function TimeDiff (sBegin, sEnd)'| The difference between the two time points in this function. You can directly use this function without changing it.'| Author: machinecat 20
ASP generates column bodies, line charts, and pie chart source code
Function table2 (total, table_x, table_y, all_width, all_height, line_no)
'Parameter meaning (transmitted array, abscissa, ordinate, chart width, chart height, number of broken
Copy codeThe Code is as follows: '*************************************** ***********
'Function ID: 0014 [check whether the ID is of the numeric type]
'Function name: JCID
'Usage: checks whether the ID is of the numeric type
'Parameter:
Copy codeThe Code is as follows: 'Database fields are class attributes, and functions such as adding, deleting, modifying, and checking operations are class methods.
Class Cls_Leibie
Private nClassID, sClassName, nParentID, sParentPath, nDepth,
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