1, the Pure intercept string
Copy Code code as follows:
function Cutstr (Thestr1,strlen)
Dim l,t,c
L=len (THESTR1)
If LT=0
For Dxy1=1 to L
C=abs (ASC (thestr1,dxy1,1))
If c>255 Then
T=t+2
Else
T=t+1
End If
If T>=
Copy code code as follows:
Function closehtml (strcontent)
Dim arrtags, I, Openpos, Closepos, Re, st Rmatchs, J, Match
Set re = New RegExp
Re. IgnoreCase = True
Re. Global = True
Arrtags = Array ("P", "div", "span",
Therefore, to conserve server resources, the connection should be shut down as much as possible to free up resources for the connection, and the technique of shutting down the recordset without closing the recordset is called a disconnected
Running an ASP program on a WINDOWS+IIS server may cause the database to be unable to update, and the specific error message may be:
1. Microsoft JET Database Engine (0X80040E09) cannot be updated. Database or object is read-only
2. Microsoft OLE
Mode one:
Copy Code code as follows:
Function Isselfrefer ()
Dim Formurl,relurl
Formurl=lcase (the Trim (request). ServerVariables ("Http_referer"))
If formurl= "" Then
Isselfrefer = False
Else
Relurl= "http://" & Trim
Copy Code code as follows:
' The following is the specific code implemented by this calendar algorithm in ASP
' First decide whether to specify a year and month, no to display according to the current year and month
If Request
1, first clear which record to delete
The SQL statement, for example, corresponds to a specific ID.
id = request.form ("id")
sql = "SELECT * from Cnarticle where cn_id=" &id
Set rs = Server.CreateObject ("ADODB.") Recordset ")
Rs. Open sql,conn,
One, the picture into the databaseUse the following knowledge in several aspects:1. Using streaming objects2. Find the size and type of pictures you want to upload3. How to use the InputStream method
necessary conditions for inserting picturesThe
When you have Chinese in the defined style, such as. sometyle {font-family:@ bold; If you write incorrectly, as in. Sometyle {font-family: bold;}, this should be the wrong way of writing, so that not only does this style not work, But also affect
This morning in the foreigner's blog to see this statement, may wish to pay attention to:
If you use FormsAuthentication in asp.net 2.0 and you set the cookie to a persistent state, the duration defaults to 30 minutes, not the 50 in ASP.net 1.1,
Author: pure Impression
Q q:442398600
August 8, 2006
The first two days in a station version of the enterprise search engine, found that some sites can link site content.
Strange under Look, the original is according to the database ID automatic
FSO, as exciting as the UFO, fascinating, of course, more people are happy to let people worry. You do not see a space service provider advertising: 100MB space as long as 60rmb/years, supporting the database, support what what ... A question does
Specifically not much said, only posted the relevant source code ~
Using System;Using System.Collections.Generic;Using System.Text;Using System.Data;Using System.Data.OleDb;Using System.Web;
/**////Name: Paging scheme under Access (imitation SQL
In a Web application, when a user accesses the application, the session-type variable allows the user to share data in all pages of the Web application, and if another user accesses the Web application at the same time, he has his own session
I have a limited level of negligence, it is inevitable that the omission of the place, but also hope that everyone criticized, this first thanked.
Introduction to ASP Programming (i): Installing a configuration Server
Since ASP scripting
URL encoding means that in order to transfer information through the URL, some characters that have special meanings must be replaced by a coding method, in the ASP we all know that there is a server.urlencode function to complete this function.
The request object in ASP is a very important object to get the client to submit the data, everybody is very familiar to him too. Even so, people often ask me how the following kinds of writing are different, in the end how to write?
strmessage =
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