' This function can be based on the user given the time date, time, minutes, etc., as long as the user given different style parameters can display different styles of time and date.
function Formattime (Testtime,style)
Dim n,y,r,s,f,m
n = year
The Response.Cookies command is used to create cookies.
Note: The Response.Cookies command must precede the label.
In the following example, we create a cookie named "FirstName" and assign it to "Alex":
The code is as follows
The main function is to use the following functions:
The code is as follows
Copy Code
' Function: Check if system components or components are installed successfully' Parameters: Component NameFunction isobjinstalled
The code is as follows
Copy Code
"Get the address of the visitorIp=request.servervariables ("REMOTE_ADDR")' The allowed IP address segment is 10.0.0.0~10.68.63.255allowip1= "10.0.0.0"Allowip2= "10.68.10.71"Response.writecheckip
Common functions in the development of ASP tutorialsSub Lastnextpage (Pagecount,page,table_style,font_style)' Generate previous page next page linkDim query, A, X, tempAction = "http://" & Request.ServerVariables ("Http_host") &
In the static HTML page to achieve the statistics of the number of browsing, you can do JS to invoke the ASP tutorial file with parameters to achieve, the following is an ASP I wrote the number of static page clicks code.
Dim
The following provides the record inquiry program is a use of the ASP Tutorial Microsoft.XMLDOM remote Crawl valu.cn Web site code.
Untitled Document
Enter a domain nameDim qQ = request.querystring ("q")if (q <> "") ThenSet
Function prev_pic (url,id) sql= "select top 1 * to young Where id>" &id& "ORDER by Id ASC" call opendb () set rs0=conn.execute (SQL) if not rs0.eof Then response.write (" "&Left ( RS0 (4), 5)) else response.write ("No ") end if
, With templet means that the generated page architecture will use a preset template, which was introduced in my previous tutorial, I hope you will be familiar with ASP template before reading this tutorial.2. ASP is converted to HTML. Don't let me
In our work, we often need to convert the data into a column chart, a pie chart, and so on to facilitate and intuitively analyze the data. Here we will introduce a component for creating a pie chart and a column chart in ASP: csDrawGraph,csdgt.zip,
'Asp transaction processing.'The test database is SQL server, the server is the local machine, the database name is test, the table name is a, two field IDs (int) primary key identifiers, num (int)Set conn = server. CreateObject ("adodb.
1. Enable Record set again before it is disabled:------------------------------------SQL = "select * from test"Rs. open SQL, conn, 1, 1If not rs. eof thenDim myNameMyName = rs ("name ")End ifSQL = "select * from myBook"Rs. open SQL, conn, 1, 1-------
To investigate the position of site visitors on specific questions, we can set a voting program on the site. Site visitors directly select the answer, and the program automatically calculates and displays all the answers.The following is a simple
For example, if the field styledesc is used, the data must be 50 bits and char characters. Can I limit only 50 bits,All characters can be entered. As long as it is char-type, it can be used as long as the database permitsIn this way, securely
Map of files on this site Hide/Show => Sub window_onscroll ()Rightf. style. pixelTop = document. body. scrollTopShhi. style. top = document. body. clientHeight + document. body. ScrollTop-30End SubSub DoFold (index) 'process of displaying and
Recently, some people have asked me how to control the input values in ASP, just like in objective Crip, only English or numbers. Now I want to sort them out as follows:Method 1:Str = Request ("string ")Temp = Server. URLEncode (str)If str = temp
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