CopyCode The Code is as follows: STR = request ("str ")
Reg = request ("Reg ")
Set RegEx = new Regexp
With RegEx. Pattern = reg. Ignorecase = false. Global = trueEnd
Set match = RegEx. Execute (STR)
If match. Count> 0 thenFor each matched in
For exampleCodeIs used to test the use of regular expressions to match characters from 0xff to 0 xFFFF. All characters whose values range from 0 to 0xfe cannot be matched.Reference content is as follows:
Copy code The Code is as follows: RegEx =
For example, 1223445677777778 aabbcccccccc is 12345678abc after filtering.
CopyCodeThe Code is as follows: 'Filtering duplicates
Function norepeat (STR)
Dim RegEx
If isnull (STR) or str = "" Then exit function
Set RegEx = new Regexp
RegEx.
Searched online
Code The same is true.
Function sort (ary)Dim keepchecking, I, firstvalue, secondvalueKeepchecking = trueDo until keepchecking = falseKeepchecking = falseFor I = 0 to ubound (ary)If I = ubound (ary) Then exitIf ary (I)> ary (I +
First, let's take a look at the effect!
Function: PagingProgramFirst, read the number of Preset records on each page. Here, there are 5 Records. Others will be displayed on the next page, and the current page number, total page number, and total
This version has been away from the previous version for some time, and there have been too many things recently. I have just been idle for the past two days, so I have to hurry up.
To view the previous version, click here
In the version released
Namespace needs to be introduced:
CopyCodeThe Code is as follows: using system. net;
Using system. IO;
Function content:Copy codeThe Code is as follows: // /// Obtain the source file content based on the URL/// /// valid URL /// Public static
The HTTP status code During redirect is generally one of the 200,301,302 status codes. The following lists the status codes and then explains the differences between them:
Jump of Status Code 200:1. 2. server. Transfer ("default. aspx ");3.
There may still be many incomplete ones, but they can be used all the time and will be improved later !!
Below is the background of my RSS Interface
Code To provide my experience to friends in need:
Copy code The Code is as follows: using
If you save a dictionary object at the session level, the system performance will be reduced, and saving a dictionary object at the application level will cause the web server to crash. I will not talk about this.
Now we need to consider the design
First, write in the ASP file.
Code
If you want to hide it, you must add some if judgment statements.
Then write a form locally.
Copy codeThe Code is as follows:
Set Lp = server. Createobject ("ADODB. Stream ")
LP. Open
LP. type = 2
LP.
To add a hyperlink to the DataGrid Control, follow these steps:
(1) In the "design" view, select the DataGrid Control and click the "Property generator" link at the bottom of the "properties" window.
(2) In the "DataGrid properties" dialog box,
Con. Close () is to close the connection. In fact, it is to put the connection back into the ado.net connection pool, and it is not actually closed. Therefore, when the connection is connected again, it is just to take the connection out of the pool,
///
/// Function for converting the fullwidth (SBC case)
///
/// any string
/// fullwidth string
///
/// The full-width space is 12288, and the half-width space is 32.
/// The relationship between the half-width (33-126) of other characters
The following are SQL connections:
Code :
Copy code The Code is as follows: function open_conn ()
Dim Conn, strconn
Set conn = server. Createobject ("ADODB. Connection ")
Strconn = "provider = sqloledb; user id = database Logon account; Password =
I copied the answer from a friend in CSDN last time. The original text is as follows:
======================================
When the number of words in an article is counted and reaches a certain number of words, the output will be truncated, but
The input name automatically associates with the name.
The background is dimmed when the music address is read.
Synchronize the LRC lyrics,
Users can expand and integrate their own music sites
Mp3.aspCopy codeThe Code is as follows: Response.
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