Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Page 87
| 1. | Explain where Visual Studio .NET stores Web application projects. |
| A1: | Web application projects are stored in a new virtual folder for each project. The properties of that virtual folder determine where the files are physically stored. These properties can be viewed in IIS. |
| 2. | List the four major differences between Web and Windows applications. |
| A2: |
|
| 3. | Describe the life cycle of a Web application: When are Web forms instantiated and how long do they exist? |
| A3: | A Web application starts with the first request for a resource within the application’s boundaries. Web forms are instantiated when they are requested. They are processed by the server and are abandoned immediately after the server sends its response to the client. A Web application ends after all client sessions end. |
| 4. | How do you preserve persistent data, such as simple variables, in a Web application? |
| A4: | You can preserve data in state variables, such as ApplicationState, Session-State, or ViewState. |
| 5. | What determines the boundaries of a Web application? |
| A5: | IIS determines Web application boundaries by the structure of the application’s virtual folders. A Web application boundary starts in the folder containing the start page of the application, and it ends at the last subordinate folder or when it encounters another start page in a subordinate folder. |