Problem with Try it out on p283
Happy New Year!
I am having an issue with the try it out on page 283. I know the example shows the wrong way first but I would still like to learn from it.
I entered
if (!Page.IsPostBack)
{
Banner1.DisplayDirection = Direction.Vertical;
}
In the page load. The text says verify that the banner user control has an ID of Banner1. The page did not say to add the Banner user control to about us, so I assume it is referring to the user control that is placed in the masterpage.
When I try to build the site I get the following error.
Name Banner1 does not exist in current context.
What am I missing?
Thanks,
Mike
|