Environment Different
Every once in awhile I notice my environment is different from that stated in the book.
Case 1: Page 75 - You state to create BasePage.cs and Visual Studio will ask to create a folder called App_Code and select Yes. My environment never did. I had to create the folder first, then create the page, then copy and paste the basePade file from the PaidTimeOff folder to the app_code folder, delete the file from the paidtimeOff folder. I also had to rebuild and recompile to get Visual Studio to realize all of the changes I had made and to somehow resolve where the missing references are. Why does my version of Visual Studio act differently?
I still am having problems with the BasePage reference. Although the Administration Page has picked up the Master Page information and appears to work. It complains about a missing BasePage reference. It seems to not know that the BasePage is located in the App_Code folder directory.
How do I make Visual Studio correct the reference.
Also, I noticed that some folders appears as folders using normal folder icons while App_Data and App_Code folders have special Icons images associated with them. How does Visual Studio know the difference?
I also noticed that you can add an existing folder to the visulal studio you have to create it first in the Visual Studio application then move go outide of Visual Studio and move files to the folder then come back to Visual Studio and right click on the folder and say add exisiting items in order to get them to appear within the project. Quite a lot of work.... Is there a shortcut?
Case 2: Creating a Master Page. Page 93
It says to select the MasterPage Template which I interpret to mean the "Master.cs". Then is says to select C# checkbox and the check box to place code in separate file. My environment does not have either check box.
Does anyone know why my environment doesn't show the check boxes? Do I need to change some environment configuration or do I have a different version of Visual Studio?
|