Lesson 1: Creating an ASP.NET Web Application Project
The purpose of this lesson is accurately expressed in its title. Additionally it introduces the Microsoft concept of the "Web Application" and its relationship to IIS, namely its virtual folder.
-
"Web applications run on a server and are distributed to clients through the Internet."
-
"It is important to realize that Web applications can exist only in a location that has been published by IIS as a virtual folder. A virtual folder is a shared resource identified by an alias that represents a physical location on a server."
The virtual folder access method covered in this lesson is the FrontPage Extensions method. This is the most flexible method as the other "File share" method is associated with NTFS security issues. FrontPage extensions work on virtual folders located on the desktop, the intranet and the Internet. For more details, see "Choosing the Best Access Method" here:
http://msdn.microsoft.com/library/en-us/vbcon/html/vbconwebaccessmethod.asp
Many of us have discovered that FrontPage Extensions suck wild boar ass. For us strange Visual Studio .NET folk, we can choose Tools > Options > Projects > Web Settings > Web Server Connection > Preferred access method: File share. The next version of Visual Studio will offer even more methods including an option not to use IIS at all!
- "When Visual Studio .NET creates a web application, it displays a new Web form in the center window... To add code to respond to events on the Web form, double-click the control... Visual Studio automatically creates the event procedures for an object's default event... Creating this connection between an object's event and the event procedure that responds to the event is called wiring the event."
In C# events, are wired "manually" by appending a new event handler to the event. In VB.NET, the Handles clause "automatically" wires up the event as it is written by the IDE when the our control is double-clicked.
- "...Web Forms applications are similar to Windows Forms applications. However, Web Forms applications have the following significant differences..."
These diffrences are summarized under the headings: Tools (actually controls), User Interface (or browser dependence), Lifetime (introducing the issue of state) and Execution (but "...the executable portions of a Web application live on the Web server" ignores client-side scripting in the web browser).
- "The Web form is only one of 11 files Visual Studio .NET generates when it creates a new Web forms project."
The lesson then enumerates these files and then the file types.