ASP format Time function

' 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

Usage and time settings for ASP cookies

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

ASP Perfect SQL anti-injection instance program

Dim Query_badword,form_badword,i,err_message,err_web,name '------Define partial head---------------------------------------------------------------------- Err_message = 1 ' processing mode: 1 = hint information, 2 = Turn page, 3 = prompt before

ASP generates HTML simple implementation program

The code is as follows Copy Code Function Gethttpxml ()Set Http = Server.CreateObject ("Msxml2.serverxmlhttp")Dim lresolve,lconnect,lsend,lreceiveLresolve = 5*1000Lconnect = 5*1000Lsend = 15*1000Lreceive = 15*1000Http.settimeouts

Simple function for ASP to determine whether a DLL file has been registered

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

ASP implementation limits IP or IP segment access to site code

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 ASP development

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") &

ASP implementation of static page browsing count code

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

ASP XMLHTTP Record Information inquiry procedure

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

ASP previous, next article instance code

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   

ASP Cache Class program code

Class CachePrivate obj ' cache contentPrivate Expiretime ' Expiration timePrivate Expiretimename ' Expired time application namePrivate CacheName ' cache content application namePrivate path ' URIPrivate Sub Class_Initialize

ASP Cache Implementation Tutorial code

Class CachePrivate obj ' cache contentPrivate Expiretime ' Expiration timePrivate Expiretimename ' Expired time application namePrivate CacheName ' cache content application namePrivate path ' URLPrivate Sub Class_Initialize

ASP static page generation method

, 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

Use ASP to create pie charts and bar charts

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,

Another asp transaction processing method

  '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.

Asp learning Notes

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-------

Flash + ASP jointly build a voting program (Figure)

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

ASP: securely writes data to the database, reads data normally, and displays data in different scenarios

  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

ASP implements structured listing and viewing all files under a path

  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

Control the number and letter input in ASP

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

Total Pages: 1800 1 .... 1095 1096 1097 1098 1099 .... 1800 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.