Function getpage (URL)
Dim Retrieval
Set retrieval = Createobject ("Microsoft. XMLHTTP ")
With Retrieval
. Open "get", URL, false ',"",""
. Send
Getpage = bytestobstr (. responsebody)
End
Set retrieval = nothing
End Function
Function
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
The biggest headache in ASP is that it is inconvenient to debug the program. I think many of my friends may use this method to "response. write" and then output related statements to see if they are correct. A few days ago, I wrote a page with
The code from the Internet has been slightly modified and actually uses the cache class ..
Save the code as, for example, pic. aspUse: http://www.xxx.com/pic.asp? Url = http://www.aaaa.com/log.gif
Not only 163, but many anti-theft images can be
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
ASP code is usually plain text and rarely encrypted. MS has a tool, Script Encoder, which can be encrypted. This tool can be downloaded from the official Microsoft website for free and has detailed instructions for use, however, the encrypted file
To use a browser and use ASP to call ADSI to control windows 2000 resources, you must use the Administrator Group's user permissions.
There are two solutions.
1. Modify the IIS Site-Directory Security-Anonymous access user-set the users in the
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.
It should be said that I learned how to insert records and how to display records, so now the simple and complete article system, news system and message system are not a problem. Then the following problem is: as the content of the information
The simple display record has been mastered. Now, you need to insert the information content to the database through ASP.
1. Have database cnbruce. mdb
This database is used to insert data. You can directly use the cnbruce. mdb file that has been
When ASP is a beginner, the program can barely be written. However, every time a website page is revised, all source programs will be transplanted. The amount of manpower and energy it consumes is countless, and even the loss is not worth the candle.
In FSO, apart from the operations on the drive and folder, the most powerful function is the operations on the file. It can be used to count, manage content, search, and generate dynamic HTML pages.
I. fso. OpenTextFileNeedless to say, fso.
1. exercise using the request object to receive data and use some functions in a comprehensive manner.
Cnbruce.html
Cnbruce. asp
Function th (str)Str = replace (str, "Mom", "MD ")Str = replace (str, "by", "KAO ")Th =
In addition to the objects used for sending (Response), receiving and processing data (requeest), and Server access (Server), ASP objects also have some very useful Application tags) and the object of a single user information (Session.
Session
The Server object provides access to methods and attributes on the Server. Most of the methods and attributes serve as functional services of the utility. (Iis help translation)
With the Server object, you can start ActiveX Object routines on the
System learning ASP begins with several built-in ASP objects.
Five objects are generally called:
Request, Response, Server, Session, Application
Let's take a look at the Request object today.
Of course, what has not been mentioned yet is what ASP
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
In program design, you often encounter a situation where you cannot know in advance what data the user needs. You must extract the data from the server and then feed it back to the user based on the user's selection. For example, if you select a
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