In the "VB and Basic" section of Netease's virtual community, there is an article "using VB to write a pure ASP program [transfer] [Technology]". In fact, I think the best way is to do this --
The definition in the original article is as follows:
Dim m_objResponse As Response
Actually, we wrote about it. dll is not very good, that is, if you want to get the program. when debugging asp programs, especially those that have passed the debugging. asp program. dll ,. asp programs use standard component names. The default component name is response, request, and so on. If m_obj is added before the quote, the corresponding change is also required if this sentence is used in the program, this will bring about a lot of work, and second, there is no improvement in the readability of the program.
Therefore, the best way is to define the following:
Dim Context As ObjectContext
Dim Server As Server
Dim Request As Request
Dim Session As Session
Dim Response As Response
Of course, there will be
Private Sub Class_Initialize ()
Set Context = GetObjectContext ()
Set Server = Context ("Server ")
Set Request = Context ("Request ")
Set Response = Context ("Response ")
Set Session = Context ("Session ")
End Sub
.
It has been proven to be completely feasible.