ASP. NET provides three main forms of cache: page-level output cache, user control-level output cache (or segment cache), and cache API.
Early cache; frequent CacheYou shouldProgramEach layer. Add cache support to the data layer, business logic
in ASP, How can I obtain the names and values of all forms. In fact, this problem is very simple, but many people may not know how to do it, so write it down specially for reference only. In ASP Program , the object used to obtain client data is
ASP Date and Time Function example You can use the date and time functions to obtain the date and time in various formats.
Function
Syntax
Description
Example
Now
Now ()
Obtain the current
'================================================ ==========
'Function name: replacetrim
'Usage: filter out all tabs and carriage return and line breaks of characters.
'================================================ ==========
Public Function
The attachment is a cracked ASP
Source code If your space supports ASP, you can directly transfer it to your space. Of course, here we will provide you with a unified solution for your convenience!
Quote:
As we all know, the 163 album speed is very
Bitmap. Save (imgpath, imageformat. JPEG );
// This is a part of the thumbnail.
Code The imageformat. JPEG file must not be omitted. Even if the saved file is in JPG format, it cannot be removed. If removed, the generated thumbnail is larger than
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
'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
Activeserverpages, asp0126 (0x80004005) --> the inclusion file cannot be found.
Microsoftoledbproviderforodbcdrivers (0x80040e21) --> SQL statement error (Data Type mismatch, table name (field name) error, table being edited, or table not in
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.
'================================================ ==========
'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.
'The following program batch rename the file names in the folder and move all the files to the new folder;
Response. Write "" & VbCrLf & "" & VbCrLf
Response. Write " batch file renaming " & VbCrLf
Response. Write "" & VbCrLf & "" & VbCrLf
'Variable
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
Method 1: Open adSchemaTables directly using the OpenSchema () method of ado and create a schema record set.
Code:Const adSchemaTables = 20AdSchemaColumns = 4Dim Conn, dbDim ConnStrDb = "temp. mdb" 'Access database file name, use the absolute path
Copy codeThe Code is as follows:
'*************************************** **********************'Keep this declaration information during forwarding. This declaration does not affect your speed!'*************************************** **************
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.