If you tried to run the Default.aspx page then you would see only a blank page. If you open the page and look at it you will see that it dosen't use the Mater page so you will not get all the things that the master page supplies. You can compare this to the ErrorPage.aspx as it does use the Master Page. Open both of them up in VS and compare the basic code; you will see the difference.
Keep in mind that unless you have set a page as the default page to run when viewing using VS it will open (try to open in some cases) the page that you are looking at at the time. You can establish a default page to run by going under the project properties on the web tab and giving it a deafult page to look at. If you select Default.aspx then you wont be able to look at other pages unless you type their location into the address bar manually. This is because the default.aspx page is not set up to use a master page.
On another thought, you could delete the Default.aspx page and then add a new one, but this time make sure that it will use a master page.
Hope this helps.
Quote:
Originally Posted by writemycomment
I have downloaded the code sample for the book. And when I try to run in vs 2008 for Chapter 5, the one which includes the UI, I do not see anything but the untitled page. I am expecting to see the master page with the menu control and the tree control, but nothing shows up. Is it supposed to be like this?
What did I do wrong ?
Thanks for your help.
Regards,
|