ASP.NET

Conclusion

We've just seen how ASP.NET works from a high level. When a client surfs to an ASPX file on your server, the request is pushed through IIS running on your server. IIS maps individual file extensions to specific ISAPI DLLs. When IIS sees the .aspx extension in the request, that ISAPI DLL is aspnet_isapi.dll. The request ends up within the ASP.NET worker process, which instantiates an HTTP handler to fulfill the request.

In the case of an ASPX file, ASP.NET instantiates a class derived from System.Web.UI.Page (which implements IHttpHandler). ASPX files are usually paired with source code files containing the source code for the page. The ASPX file behaves mainly as the presentation layer while the accompanying Page class contributes the logic behind the presentation layer.

Next up-all about System.Web.UI.Page and how Web forms work.

Tutorial 2 Quick Reference

Create an FTP Web site

  1. Select File | New | Web site from the main menu. Select FTP from the Locations combo box

  2. This option is useful for creating sites that will be eventually be deployed by sending the bits to the real host over FTP


Create an HTTP Web site

  1. Select File | New | Web site from the main menu. Select HTTP from the Locations combo box

  2. This option is useful for creating sites that use IIS as the Web server throughout the whole development cycle


Create a File System Web site

  1. Select File | New | Web site from the main menu. Select File system from the Locations combo box

  2. This option creates sites that use Visual Studio's built-in Web server. That way, you may develop your own site even if you don't have IIS available on your machine

by BrainBellupdated
Advertisement: