'================================================ ==========
'Function name: replacetrim
'Usage: filter out all tabs and carriage return and line breaks of characters.
'================================================ ==========
Public Function
See ASP. NET (
Www.asp.net (MS Ajax videos and related materials posted for a long time, but few people mentioned them in China. Today I will give you a brief description of the biggest difficulty I encountered in the early days of learning
Searched online
Code The same is true.
Function sort (ary)
Dim keepchecking, I, firstvalue, secondvalue
Keepchecking = true
Do until keepchecking = false
Keepchecking = false
For I = 0 to ubound (ary)
If I = ubound (ary) Then exit
If ary (I)> ary
Abstract: This article describes how to dynamically include ASP files in ASP and Make ASP classes instantiated.
In ASP, include file/virtual is the priority scriptCodeTherefore, you cannot use include to dynamically include ASP files. We can use
CopyCode The Code is as follows: function autolinkurls (strstring)
Dim match, matches, offset, URL, email, Link, relnkautolinkurl
Relnkautolinkurl = " [% urltext %] "
If not isobject (Regexp) then set Regexp = new Regexp
Regexp. Global = true
Regexp.
Because there is a cache when accessing the ACCESS database using ADO, when database data is randomly extracted, for example, SQL = "select top 10 title, objectguid from document order by RND (ID )", there will be no random records. The following
Private void page_load (Object sender, system. eventargse)
{
// Place the user here
Code To initialize the page
String url = http://www.jb51.net;System. net. httpwebrequesthttpreq;System. net. httpwebresponsehttpres;System. urihttpurl = new uri (
Added IFRAME and script checks to restore a large number of IFRAME web pages. This prevents manual deletion.
Virus_lib.asp adds IFRAME. The script control parameters are:
Const removeiframe = true' check IFRAMEConst iframekey = "3322" 'iframe
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
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
Looking for a counter just now, because the website has too few visits, it is a bit shabby to put a counter there, so the call can only be simple, you can record it once for one visit to support the facade first. I used to have one, but I was
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.
Copy codeThe Code is as follows:
'*************************************** **********************'Keep this declaration information during forwarding. This declaration does not affect your speed!'*************************************** **************
Save. asp
'Constants file supported ded above.
'Delete if the file exists.
Dim objFSO
Set objFSO = Server. CreateObject ("Scripting. FileSystemObject ")
If objFSO. FileExists (Server. MapPath ("db_xml.xml") Then
ObjFSO. DeleteFile Server. MapPath ("
Get one of the remote webpage content (downmoon original)
1. When the local machine directly accesses the Internet:
Obtain the content of the specified remote webpage # region obtains the content of the specified remote webpage
Copy codeThe Code is
ASP is not a scripting language. It only provides an environment for running scripts embedded in HTML pages. VBScript is the most commonly used scripting language in ASP. Although the ASP script language is very simple, it is not a simple task to
Method 1: Use the XML Control
XML method 1
Method 2: Use DOM technology
method 2 of XML reading
Method 3: Use a DataSet object
XML reading method 3
Method 4: Read data by text
XML reading method 4
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