1. The simplest is as follows:
Dim objconn
Set objconn = server. Createobject ("adobd. Connection ")
Objconn. open application ("connection_string ")
'Call the stored procedure to increment a counter on the page
Objconn. Execute "Exec sp_addhit"
No
This is just an ASP little skill. Although it is suitable for calling this function in different file names, it is also a prerequisite. Let's take a closer look at the original principles.
The following section shows the basic page
Code :
Set
In this way, you can modify and integrate the key statements.
ASP: I will not write the database connection
CopyCodeThe Code is as follows:
Rs. Open "select * From Table1", Conn, 1, 1
For I = 1 to Rs. recordcount
Response. write ("vlue1" & I &
North-south interconnection ASP free dual-line space service, space only supports ASP language, supports common popular components, supports binding 2 domain names, after the application is successful, please mark at the bottom of your site "space
Author: Gan jiping
I discussed the basic knowledge above and then talked about permission licensing issues. FSO is run with the user account permission to create it, in other words, if someone is from the InternetTo access your page, then this
This is intended to escape LAKER2 and check ASP Trojans.
Now the challenge is successful, and it has been added as the check object. I hope you will like it!
The ADOX. Catalog component is used.
Copy codeThe Code is as follows: 'Code by
Note:
Although Perl has been familiar to many programmers over the past few years, there is an embarrassing misunderstanding about Perl. I think Perl is CGI. Some people often ask me about Perl, CGI, and PHP, it is a pity to compare it with ASP. the
========================================================== ==================================
'Thank you for using the utility program developed by ASP001 studio.
'Http: // WWW. ASP001.NET
'================================================ ===========
The following mappings are often performed in projects:
Set
Http://onewww.net/a.aspx? Name = llinzzi
Map
Http://onewww.net/llinzzi
First, we need to solve two problems.
The first is to support wildcard URL ing URL ing, which is a new feature of asp.
Are you satisfied with your own database design? Are you sure you don't want to deal with it? For example, creating a new database table, such as creating or modifying a field ...... Of course, these are the columns of the design database.
In this
Strictly control sessions
You can move unnecessary Session content (such as the help screen, visitor area, and so on) to an independent ASP application that closes the Session. On the Basic page, you can give ASP an instruction so that it does not
1. fso. GetFile
Extract File objects
1. getfile. asp
Whichfile = Server. MapPath ("cnbruce.txt ")Set fso = CreateObject ("Scripting. FileSystemObject ")Set f1 = fso. CreateTextFile (whichfile, true)F1.Write ("This is a test. My Name is
I. On Error statements
This statement is used to enable or disable error handlers. The general usage is as follows:
On Error Resume NextOn Error GoTo 0
In your codeUnusedOn Error Resume Next statement, the Error message is displayed
I learned how to extract the file value from FSO and input the information into the file. Then I will apply it again.
I don't know if you have the habit of seeing a file, right-click it unconsciously and choose to open it with notepad. No file is
There are many people who need it, and many people have asked, I remember a detailed reply in a post.
Now, sort it out!
1. Download an object
Imgchk.rar
The compressed package is an imgchk folder, which has three files: validatecode. asp,
Recently, asp-related files cannot be found on the Internet. If someone gets it out early, don't joke about it. After a long time, you can get it done;
Principle: analyze and determine the UTF-8, unicode, and ANSI (Simplified Chinese operating
Online Search for asp Trojans in a space
Copy codeThe Code is as follows:
'Set Password
PASSWORD = "jb51net"
Dim Report
If request. QueryString ("act") = "login" thenIf request. Form ("pwd") = PASSWORD then session ("pig") = 1End if%> ASPSecurity
Response. buffer = true
'Application caching technology.
Dim lostnum
'Prevent dmax from being too large and dstep from being too small.
Dim shownum
Delayshow (dstep, dmax)
Sub delayshow (dstep, dmax)
'Dmax indicates the number of dmax (Steps) to be
Author: Gan jiping
You may think: Well, now I know how to write files. But can we do more? Next, let's try to create a search function for the web site.
The key to building a search engine is recursion. Mainly, write a piece of code to search for
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