For simple, static fi les, like HTML fi les or images, the web server
simply reads the fi le from its local hard drive and sends it to the
browser. However, for dynamic fi les, such as ASPX pages, this is obviously not good enough. If
the web server were to send the ASPX fi le directly to the browser as a text fi le, you wouldn’t have
seen the current date and time in the browser, but instead you would have seen the actual code (). So, instead of sending the fi le directly, the web server hands over
the request to another piece of software that is able to process the page. This is done with a concept
called Application Mapping or Handler Mapping, where an extension of a fi le (.aspx in this
example) is mapped to an application that is capable of handling it. In the case of an .aspx page, the
request is eventually handled and processed by the ASP.NET run time, part of the Microsoft .NET
Framework designed specifi cally to handle web requests
For simple, static fi les, like HTML fi les or images, the web serversimply reads the fi le from its local hard drive and sends it to thebrowser. However, for dynamic fi les, such as ASPX pages, this is obviously not good enough. Ifthe web server were to send the ASPX fi le directly to the browser as a text fi le, you wouldn’t haveseen the current date and time in the browser, but instead you would have seen the actual code (<%:DateTime.Now.ToString() %>). So, instead of sending the fi le directly, the web server hands overthe request to another piece of software that is able to process the page. This is done with a conceptcalled Application Mapping or Handler Mapping, where an extension of a fi le (.aspx in thisexample) is mapped to an application that is capable of handling it. In the case of an .aspx page, therequest is eventually handled and processed by the ASP.NET run time, part of the Microsoft .NETFramework designed specifi cally to handle web requests
การแปล กรุณารอสักครู่..
