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
A long time ago, I sorted out the documents and reviewed them.
Use VB to encapsulate ASP and create a SayHello Test Program
1. Open VB6 and create ActiveX DLL
2. Add Microsoft Active Server Pages Object Library selection to the project reference
3.
========================================================== ==================================
'Thank you for using the utility program developed by ASP001 studio.
'Http: // WWW. ASP001.NET
'================================================ ===========
========================================================== ==================================
'Thank you for using the utility program developed by ASP001 studio.
'Http: // WWW. ASP001.NET
'================================================ ===========
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
Two common file generation methods in ASP are: Using ADODB. Stream to generate a file and using Scripting. FileSystemObject to generate a file.
1. Scripting. FileSystemObject file generation method:Copy codeThe Code is as follows: Set fso =
1. Enable record set again before it is disabled:
------------------------------------
SQL = "select * from test"
Rs. open SQL, conn, 1, 1
If not rs. eof then
Dim myName
MyName = rs ("name ")
End if
SQL = "select * from myBook"
Rs. open SQL, conn, 1,
To sum up, the operation on the database is nothing more
Display records, insert records, modify records, delete records, and query records.
In addition, it also involvesOutput Format and paging program displayedThen, we can combine the insert
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.
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
We already know that the OnStart and OnEnd event scripts of the Application and Session objects must be declared in the Global. asa file. What kind of file is Global. asa? What is its role? How should we use it? Let me hear about it.
First. AsaIs
To be honest, no matter asp, php or jsp network programming, interaction with users is inseparable.
The human-machine interaction platform basically relies on the corresponding text and list box for input, and then submits the data to the database
My skills are limited, and I am sorry for any omissions. I hope you will criticize and correct them. Thank you for your patience.
Advanced ASP programming (1): Install the configuration server
The ASP scripting language is interpreted and run in
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,
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
This article uses VB5.0 to create an ActiveX DLL file, which simulates a rolling process and describes how to call DLL in ASP.
Dynamic connection library (DLL) is an important way to speed up the execution of key parts of the application, but I am
Index. asp of the first File
The second login. asp
Response. ContentType = "text/xml"Response. Write (" ")Response. Write (" ")Response. Write (" love you ")Response. Write (" ")%>
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