Overview:
The session Object are how to track a single user across many pages. It has four (4) properties, two (2) collections, one (1) method, and two (2) events.
Get started:
In this series of examples we create a password system. We'll use the
In
part 1thAnd
Part 2nd, the WeatherDataSource control is established, which runs against the XML APIs provided by Weather.com, and uses WebRequest and WebResponse to access the data over HTTP. To date, the service has been accessed synchronously.
For web designers, it is unavoidable to deal with large quantities of documents at times, especially pictures and text files, which are often handled. And because of the Web site a large number of documents, for the same type of file naming, often
To get the last modification time of the generated HTML file, write a function that has a simple judgment.
Instance:
2005-11-10 19:33:44
ASP file 6.83 KB
Save the following file as a mofei.asp file, run it, to support the FSO.
When we use ASP to develop the file upload function, in order to prevent users to upload trojan, often limit the upload of some files, commonly used method is to determine whether the extension of the upload file is consistent with the rules, you
Normal substitution function
Copy Code code as follows:
Public function Highlight (s,f)
Dim tl,tm,tr,k
Tl= ""
Tm= ""
Tr=s
K=instr (1,tr,f,1)
Do While k>0
Tl=tl & Left (tr,k-1)
Tm=mid (Tr,k,len (F))
Tl=tl & "" & TM &
one, commonly used ASP time function
1, now () get the current system date and time, ASP output format:
2 years (now ()) to get the year, ASP output format:
3, Month (now ()) Gets the current month, ASP output format:
4, Day (now ()) to
The RadioButtonList control represents a list control that encapsulates a set of radio button controls.
You can add radio buttons to a Web page using two types of ASP.net controls: Individual "RadioButton" controls or a "RadioButtonList" control.
First, prohibit the designation of IP Web site, and perform the appropriate actions:
Copy Code code as follows:
Dim Ip,ipstring,visitip
' Set IP address, with ' | ' Separated
Ipstring= "|192.168.0.42|192.168.0.43|"
' Get IP
1, ASP two simple way to generate static home page
Why should I generate a static home page?
1, if you read the first page of the database more frequently, the speed is very slow, and occupy a lot of server resources. Using static page access speed
Now the popular virtual host station, I also have a website, is also a webmaster slightly. When the webmaster for nearly a year, feel the site program every time the upgrade is quite troublesome: first go to the official notice, and then download
function, which is a function block encapsulated in the language, to facilitate the user's invocation. For example, "Now" in VBScript is a function that shows the current date and time. As for the specific reason for the display, the language is
18-bit ID card verification algorithm
Verification code algorithm for ID card
ID Check code generation method:
∑ (AIXWI) (mod 11)
I: the number of digits from the to left including the check code;
AI represents the number character value on
* Tip 1: Use Global.asa for application-tier files
Loads a file into an application-tier array in Global.asa instead of reading the file on the page by using an ASP file system pair.
GLOBAL. ASA can be used to specify event scripts or to declare
=============================================================
' Thank you for using the utility function program developed by the ASP001 studio
' HTTP://WWW.ASP001.NET
' ============================================================= ' ASP001 studio
Two DropDownList linkage, select one of the DropDownList, and then load the data onto another DropDownList Here, I intend to achieve the requirements are: There are two DropDownList, a default load all the province data, and then, when
It's easy to write, it's just a function.
Function FormatUrl (yes)
If Mid (yes,5,1) <> "" Then
Yes1 = Left (yes,3)
Yes2 = Right (Yes,cint (len (yes))-3)
FormatUrl = yes1 & "." & Yes2
Else
Formaturl=yes
End If
End Function
' Get the remote page
First, overview:
WEB Services is an online application service published by an enterprise that completes its specific business needs, and other companies or applications can access and use the online service over the Internet. It logically provides
Copy Code code as follows:
'************************************
' Intercept literal length function, support UTF-8
' Input parameters:
' 1, text content
' 2, text maximum length
'************************************
Public Function
Function getipvalue (ClientIP) ' Gets the IP conversion growth integer of the client, the return value Getipvalue
On Error Resume Next
Dim StrIp, Array_ip
Strip=0
Array_ip = Split (ClientIP, ".")
If UBound (array_ip) <>3 Then
Getipvalue=0
Exit
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