How to obtain the maximum value in the array (provided by port 71port_80)
This function is used to obtain the largest value in a group of arrays. It is very practical and typical and worthy of favorites!
CopyCodeThe Code is as follows:
Snum = "345
'Asp generates random strings (numbers + uppercase/lowercase letters)
'I don't think I 'd like to use this exercise.
Function randkey (OBJ)
Dim char_array (80)
Dim temp
For I = 0 to 9
Char_array (I) = CSTR (I)
Next
For I = 10 to 35
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
In many cases, we always access text files in line mode. Using the foreach statement can greatly simplify the access logic: for example:
Foreach (string line in new linereader ("C: \ abc.txt "))
Console. writeline (line );
Complete
Code As follows:
/* ------------------- ASP document reference set -----------------------*/
* --> Author: Crawler
* --> Time: 2007-4.28---2007-4.30)
* --> Contact: caolvchong@gmail.com
* --> Document function:
1. I reviewed ASP and deepened my understanding of ASP
1. filter all submitted content from the client, including? Id = N class and submitted html
Code In the operating database language such as select, and ASP file operation syntax, you can escape the word submitted, and then save it to the database
mobile phone number query
Dim Regexp, I
Mobile = request. Form ("mobile ")Mobilearea = "unknown"Mobiletype = "unknown"Set xmlobj = server. Createobject ("msxml2.xmlhttp ")Set Regexp = new RegexpRegexp. pattern = "class = tdc2>. * "Regexp.
Some common AIDS
Code
Click Back to the Code on the previous page:
Code of the pop-up warning box:
Click to open a new window
A confirmation box is displayed when you delete a record:
Close the window close the window
Clear
1. Use isapi_rewrite for Dynamic Link rewriting of HTML static URL. Isapi_rewrite is a DLL component, and re_write is a module in IIS. This filter maps Dynamic Web URLs to static Web URLs through regular expressions. If news. asp? Id = 95 convert it
Permanent page removal (301 redirection) is a very important "auto redirect" technology.
First, a tool is provided to check the server header information. Simply put, it is used to check whether 301 of your site is successful. Don't
'*************************************** ***********
'Function name: CreateKeyWord
'Usage: generate a keyword from a given string
'Parameter: Constr --- the original string to generate the keyword
'Return value: generated keyword
'*******************
'================================================ ==============
'Process name: SaveRemoteFile
'Usage: Save the remote file to the local device.
'Parameter: LocalFileName ------ local file name
'Parameter: RemoteFileUrl ------ Remote File URL
'======
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
I. Principle of component-less upload
Let me describe it with an instance at 1.1. The client HTML is as follows. To browse and upload attachments, we use the element, but be sure to set the enctype attribute of form to "multipart/form-data ":
In
These days, the SQL injection vulnerability has hurt me, and the online code is too complicated and difficult. Finally, I found the omnipotent anti-injection code and shared it. The operation is easy to use. You only need to include or put it in
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