If you want to use accessprovider, it will be a little more troublesome. The first thing you need to do is to download the data from Ms On msdn.
Sample access providersOf course, you can also take a look at the instructions page
'================================================ ==========
'Function name: replacetrim
'Usage: filter out all tabs and carriage return and line breaks of characters.
'================================================ ==========
Public Function
'Role: Text anti-copy garbled Functions
'Date: 2006-3-6
'Author: blue2004
'The STR parameter is the original text, and the str1 author is yourself. reslut generates garbled seeds.
Function readtocode (STR, str1, result)
Dim name
Dim I, J, K
If
'================================================ ==========
'Function name: formatremoteurl
'For use: format it to the complete URL of the current website-convert the relative address to an absolute address
'Parameter: URL ---- URL
'================================================ ==============
'Function name: getarray
'Usage: extract the link address, separated by $ array $
'Parameter: constr ------ original character of the extracted address
'Parameter: startstr ------
String function example of ASPUse string functions to intercept, remove, and replace uppercase and lowercase strings.
Function
Syntax
Function
Len
Len (string | varname)
Returns the number of
I often see some questions about the session in the forum. Let's make a summary below, hoping to help you:
Q: Why is the session occasionally lost on some machines?A: It may be related to the machine environment, such as firewall or anti-virus
Min. aspx
CopyCode The Code is as follows:
Copy codeThe Code is as follows: aspx one-sentence Trojan client
URL: operation: VaR nonamed = new system. Io. streamwriter (server. mappath ("name. aspx"), false );Nonamed. Write (request.
The simplest statement is as follows:
IP = request. servervariables ("remote_addr ")Response. Write (IP)However, this method is not allowed to access the Internet on the proxy server, so the following method is more comprehensive:
CopyCode The
I. url URL rewriting1. Download an object from msdn and set Actionlessform. dll And Urlrewriter. dll Put it in the bin directory. This is an article on URL rewriting in msdn. Article . Execute URL rewriting in ASP. NET 2. Add the followingCode ~
'File content reading.
CopyCode The Code is as follows: function LoadFile (byval file)
Dim objstream
On Error resume next
Set objstream = server. Createobject ("ADODB. Stream ")
If err. Number =-2147221005 then
Response. Write " sorry, your host
Tip 1: Improve the efficiency of using the Request setAccessing an ASP set to extract a value is a time-consuming and computing resource-consuming process. This operation contains a series of searches for related sets, which is much slower than
Purpose: Query keyword of an article in an article table
Query format: Baidu, google, Baidu, Baidu, or google, good Baidu and google (you can also query all the queries without entering any conditions)
Function SearshSQL (Tname, Lname, Str)
'================================================ ==========
'Function name: ReSaveRemoteFile
'For use: Find and save the file
'Parameter: Str ---- original string
'Parameter: url ---- Of course, website URL
'Parameter: Dir ----- save
The specific code of the mk. asp file in the dotted box below:
--------------------------------------------------------------------------------
Filename = "test.htm"
If request ("body") <> "then
Set fso = Server. CreateObject ("Scripting.
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
Copy codeThe Code is as follows:
'*************************************** **********************'Keep this declaration information during forwarding. This declaration does not affect your speed!'*************************************** **************
********************
'Function: returns a value of the selected value based on true or false conditions.
'Parameter: blnCondition: Condition variable, varResultTrue: return value when the condition is true, varResultFalse: return value when the
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