Re: what happen when i request an ASP file???
From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 04/17/04
- Next message: David Wang [Msft]: "Re: Cannot use Request.Form collection after calling BinaryRead"
- Previous message: David Wang [Msft]: "Re: Change computername with MS Server 2003 Web Edition"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 17 Apr 2004 03:22:10 -0700
When a browser makes a request for page1.asp, the web server first
determines what script engine is going to process this request and then
passes the name of the script file to the script engine.
The script engine is going to process all included files into one so that
code in <% %> can be interpreted, mixed with the HTML elements, to generate
a response that is transmitted to the browser.
The response received by the browser can contain client-side Javascript, CSS
directives, as well as the actual HTML response, which is all interepreted
and rendered by the browser.
So:
- CSS is rendered by the client after it sees all the HTML
- client-side JScript is interpreted on the client to manipulate the
client-side object model
- server-side JScript/VBScript inside <% %> is processed on the server-side
by ASP to generate HTML
- HTML is generated by ASP and rendered by the client
- Include file is simply a concatenation process by ASP on the server. It
can end up involved with any of the above
There are several layers of caches involved in any given request
- IIS has a response cache, such as "send these 5,000 bytes from memory if a
request for /foo.css comes in"
- Client has a cache, such as "if I send a request for /foo.css with an
If-Not-Modified header and a 304 response comes back from IIS, then I'm
going to use my local copy of /foo.css when rendering the request
- Proxy between the server and client has a cache, operating like IIS's
So, the behavior ALL DEPENDS ON YOUR CONFIGURATION. This is one
possibility -- IE will make a request for every resource with an
If-Not-Modified header and sees what comes back as 200 vs 304. If a 200
comes back, then the updated item is used; else, the client-cached copy is
used.
When you submit a FORM with ASP, what is sent completely depends on the
elements inside the form. Some form elements pass back simple string
parameters (like the value of "textarea" or the value of a "radio"). Others
pass back entire file contents (like the contents of "file").
-- //David IIS This posting is provided "AS IS" with no warranties, and confers no rights. // "Miguel" <mpardot@yahoo.com> wrote in message news:C566262E-ED7B-4C19-B0F3-65F43F5214B0@microsoft.com... Hi all friends Supopose a first ASP page called page1.asp, which contains vb script,html,jscript,and css (but in a include file) code, i know that vb script code is executed first by IIS and then the html code and the others elements, but i don't know which is interpreted first the CSS code included in a file or the html and jscript which is not included. This is my first doubt. I've got another one, it is; if i request a second time page1.asp, the IIS server is sending me each one of the elements of the server??? i mean, every image, every html element??? or just the new elements which aren't in my temp html page send to my pc by IIS???, Other one. When i submit a form with an asp to the IIS server, are send just the elements of the form or all the elements of the page (images,html code, etc) are send to the IIS?? I hope you can help me. ThanX for all.
- Next message: David Wang [Msft]: "Re: Cannot use Request.Form collection after calling BinaryRead"
- Previous message: David Wang [Msft]: "Re: Change computername with MS Server 2003 Web Edition"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|