A
Anthony Jones
Bob Barrows said:No, it doesn't - my mind is now boggled. What have I ever said that
would imply, err .... that a page is equivalent to an application?
I don't see why. Many people use the term "page" when they are talking
about a file to be requested from a web server. In your browser's
address bar, you are seeing the address of a page (file) that you are
requesting the web server to serve. If the requested page is mapped to
be processed by the asp.dll. I don't know how you make the leap to say
an "application itself appears in the address bar, e.g. "Members.asp"."
I think the issue is that we have a both a physical and a logical
definition of many of these terms.
The physical definition of a page is a file. It contains code and text.
It can either be served directly via http as html, or processed by
asp.dll to generate html.
The logical definition consists of everything that happens between the
time the physical page is requested and the response ends.
Yes, it is confusing that we use the same term for both concepts but
this is not the only place we do so.
In physical terms, an ASP application consists of all the files (pages)
in a virtual directory, including subfolders.
In logical terms, an ASP application "comes to life", i.e., the
Application object is created, the first time one of the files in the
_physical application_ is requested. If an application_onstart event
handler is present in the global.asa, it will be processed at this time.
The "logical" application stays alive until a change is made to the
global.asa file or the server is reset.
Now you've got me going back over what I've previously said that could
possibly lead one to the conclusion that a function could contain a
page. Are you talking about a vbscript function? If so, a function is
contained in a physical page, not vice versa.
Hmm, I think I understand what you are trying to say. You have a
physical page containing several functions, each of which generates
different html to be sent to the client. And you are thinking a
different "page" is being sent to the client depending on which function
is run, so you are thinking that each function contains a different
page? Whereas I would be thinking that the same page is being processed
regardless of which function is run, the only difference being what html
is sent to the client.
and here I was thinking F# is hard it seems defining what a page is harder
Page: "The resultant rendering of HTML" thats the best I can do.
Active Server "Page" is a misnomer IMO. I think I've stated somewhere
before that I suspect it would have been Active Server File if ASF hadn't
already been in use and Active Server Script (which is what it really is)
just won't do.