Accept macro restriction: the file must exist and be pre-compiled (no matter whether the preceding conditions are met)
This is often the case where you need to include different files according to different requirements. For example, you need
A = "Japan is a province in China | our beautiful Chinese Zhangjiajie! "
B = "China, US, Zhangjiajie, Japan, US, Apple"
B = Split (B ,",")
A = Split (a, "| ")
For k = 0 to ubound ()
S = ""
N = ""
For I = 0 to ubound (B)
If instr (A (K), B (I)
Datediff Function
DescriptionReturns the interval between two dates.SyntaxDatediff (interval, date1, date2 [, firstdayofweek] [, firstweekofyear])The syntax of the datediff function includes the following parameters:
Parameter
========================================================== ==================================
'Thank you for using the practical functions developed by asp001 studio.
Program
'Http: // www. asp001.net
'============================================
In this project, a large file upload is used, and the number of files to be uploaded is more than 100 MB.The component found that many of them used two controls: aspnetupload 2.0 and Lion. Web. uploadmodule. In addition, they thought about its
The anchor is" Top ", Which can be placed anywhere on the page, generally the top.ProgramThe red part is the key, that is, the judgment on the appearance of the anchor. The value I set is 4 Appears 4 Dynamic Data contains one anchor, less 4
Performance problems caused by attributes are tested by type. The performance is greatly improved when type is removed, that is, type attribute display, subsequent tests also prove that the use of the type attribute causes performance problems.
Edit_rs_pai.commandtext = "select * From DBO. usertable where id =? "
At this time, you need to put the fields that cannot be displayed in SQL and display them.Edit_rs_mirror.commandtext = "select *, [fields not displayed], [fields not displayed]
Replace with regular expressions directly, but no judgment Function
Function formatimg (content)
Dim re
Set Re = new Regexp
Re. ignorecase = true
Re. Global = true
Re. pattern = "(SCRIPT )"
Content = Re. Replace (content, "script ")
Re. pattern = "]
I.. NET Framework
1. How to obtain the system folder
Use the getfolderpath method of the system. enviment class. For example:
Environment. getfolderpath (environment. specialfolder. Personal)
2. How to obtain the path of the EXE file being
Below is a table of Response Properties along with examples and explanations.
Response Properties
Buffer
Response. Buffer = trueAllows for the buffering of output
CacheControl
Response. CacheControl = "Public"Sets
Ajax + ASP and Flash + ASP data access method
The two data access methods are similar.
====================================
The following is the Ajax code of a ChatRoom:
Var ajaxHttpRequest = false;
Function ajaxInit (){
If (window. XMLHttpRequest) {
The following is the source code. Please name it the. asp file.
Copy codeThe Code is as follows: Bpn = request ("bpn ")
If (bpn = "") then
Bpn = "0"
End if
Intbpn = cint (bpn)
If request ("action") = "1" thenWord = request ("word ")Url = request ("
Sometimes, when we debug the ASP.net program, it will be very painful. Access to a certain component is denied. At this time, Restarting IIS does not work when the computer logs out. At this time, the error message is generally similar to the
The biggest headache in ASP is that it is inconvenient to debug the program. I think many of my friends may use this method to "response. write" and then output related statements to see if they are correct. A few days ago, I wrote a page with
How many advertisements are displayed on the same website? Need different weights? Simple 20 lines of code.
Copy codeThe Code is as follows: Dim cc_fv_ad_468_80_code, cc_fv_ad_power, cc_fv_ad_ I'Ad weight show Bright Moon starlight Copyright http://
Add the Super User's. asp code [blue screen originality, Kevin improvement, unpublished Ms vulnerabilities]
Author: blue screen, Kevin's Article Source: freezing point limit
In fact, Kevin and I tested it on my zombie last week, and the hippo epic.
M_Root is the file name. You can use relative paths.
Call example:
Response. Write (LoadFile ("Test.htm "))
Function LoadFile (m_Root)Dim Filename, fso, hndFileFilename = m_RootIf Right (Filename, 1) <> "/" And Right (Filename, 1) <> "\" Then
Asp output bmp
[12:04:25 | Author: flashsoft]
Font size: large | medium | small
Call Com_CreatValidCode ("ValidCode ")
Sub Com_CreatValidCode (pSN)
'Author: Layen'Qq: 84815733'E-mail: support@ssaw.net
'Prohibit cachingResponse. Expires
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