To create a new Web site using Visual Studio 2005 :
1. Start Visual Studio 2005. Select Start | All Programs | Microsoft Visual Studio 2005 | Microsoft Visual Studio 2005.
2. Create a file-based Web site. Select File | New | Web Site. The New Web Site dialog box appears.
3. In the New Web Site dialog box, change the Location drop-down list to File System and type C:\70-528\MyFirstSite as the location on a local drive. Then select your preferred programming language for the Web site and click OK. This creates a new directory and subdirectory for the new Web site.
4. Explore the new Web site. In the Solution Explorer window, notice the special folder called App_Data and the Web page called Default.aspx. Click the plus (+) sign beside the Default.aspx file to reveal the code-behind page.
5. Explore the temporary files. Open the following folder with Windows Explorer: %WinDir%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files Notice that this folder contains a subdirectory called myfirstsite. This folder was
dynamically created and contains files related to your new Web site. The first file is the Code Compile Unit (.ccu) file, which contains a serialized collection of source code objects that can be compiled. Next is the compiler (.compiled) file, which is an .xml file containing compiler information. This file indicates that the Code Compile Unit file is created from the Web page and its corresponding code-behind page. The last one is the Hash.web file, which contains a hash of the Web site.
6. While the temporary files folder is open and in view, build the Web site. In Visual Studio 2005, select Build | Build Web Site. Notice that the code files are being created, and then the newly created files are deleted and replaced with assemblies. After the build is completed, note the files that exist in the temporary files folder. A dynamic-link library (DLL) was created that contains the compiled Web page and its code-behind page. Also, a new compiled file has been created, containing the compiler settings that were used to create the DLL.
7. Browse the default.aspx page. In Visual Studio 2005, select Debug | Start Without Debugging. After a moment you should see your blank Web page. Notice that there are no new files in the temporary files folder because this page was already compiled and has not been changed. Leave these windows open if you are going to proceed to the next exercise.
1. Start Visual Studio 2005. Select Start | All Programs | Microsoft Visual Studio 2005 | Microsoft Visual Studio 2005.
2. Create a file-based Web site. Select File | New | Web Site. The New Web Site dialog box appears.
3. In the New Web Site dialog box, change the Location drop-down list to File System and type C:\70-528\MyFirstSite as the location on a local drive. Then select your preferred programming language for the Web site and click OK. This creates a new directory and subdirectory for the new Web site.
4. Explore the new Web site. In the Solution Explorer window, notice the special folder called App_Data and the Web page called Default.aspx. Click the plus (+) sign beside the Default.aspx file to reveal the code-behind page.
5. Explore the temporary files. Open the following folder with Windows Explorer: %WinDir%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files Notice that this folder contains a subdirectory called myfirstsite. This folder was
dynamically created and contains files related to your new Web site. The first file is the Code Compile Unit (.ccu) file, which contains a serialized collection of source code objects that can be compiled. Next is the compiler (.compiled) file, which is an .xml file containing compiler information. This file indicates that the Code Compile Unit file is created from the Web page and its corresponding code-behind page. The last one is the Hash.web file, which contains a hash of the Web site.
6. While the temporary files folder is open and in view, build the Web site. In Visual Studio 2005, select Build | Build Web Site. Notice that the code files are being created, and then the newly created files are deleted and replaced with assemblies. After the build is completed, note the files that exist in the temporary files folder. A dynamic-link library (DLL) was created that contains the compiled Web page and its code-behind page. Also, a new compiled file has been created, containing the compiler settings that were used to create the DLL.
7. Browse the default.aspx page. In Visual Studio 2005, select Debug | Start Without Debugging. After a moment you should see your blank Web page. Notice that there are no new files in the temporary files folder because this page was already compiled and has not been changed. Leave these windows open if you are going to proceed to the next exercise.
No comments:
Post a Comment