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
========================================================== ==================================
'Thank you for using the practical functions developed by asp001 studio.
Program
'Http: // www. asp001.net
'============================================
Copy codeThe Code is as follows:
Dim p, ppic, id, body, myCache
Randomize
P = Int (3 * rnd) + 1)
Id = Request. QueryString ("id ")
HttpUrl = "http://sms.2e7.net/cute cartoon 0" & p & ". gif"
Set myCache = new cache
MyCache. name = "picindex" &
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
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
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
Tip 1: Improve the efficiency of using the Request set
Accessing an ASP set to extract a value is a time-consuming and computing resource-consuming process. This operation contains a series of searches for related sets, which is much slower than
1. How to Use GetRows:
Set conn = Server. CreateObject ("Adodb. Connection ")
Conn. Open "Provider = Microsoft. Jet. OLEDB.4.0; Data Source =" & Server. Mappath ("test. mdb ")
Set Rs = Server. CreateObject ("Adodb. Recordset ")
Rs. Open "Select Top 2
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
Copy codeThe Code is as follows: '\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\
'\\
'\ 1. c: \ windows \ system32 \ cmd.exe
'\ Copy the path of the object
'\\
'\ 2. Set c: \ program \ winrar \ rar.exe
'\ Copy and rename the path of
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
First, understand the principle.
1. Enter the text box to query the content.
2. Submit the query information to the page for processing.
3. The program page is mainly used to receive query information. Based on this information, a specific SQL query
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.
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