Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 1st, 2009, 11:05 AM
Registered User
 
Join Date: Nov 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old January 1st, 2009, 11:38 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Mike,

Looks like you're missing step 11 at the top of page 281:
Quote:
11. Open the page AboutUs.aspx from the About folder in Visual Web Developer in Markup View. If you don’t have that file, create it first. In the cpMainContent ContentPlaceHolder add some text describing you or your organization and the reason you created the site. Switch to Design View and drop the Banner.ascx control from the Solution Explorer onto the design surface, right below the text you just added.
Hope that helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old January 1st, 2009, 08:19 PM
Registered User
 
Join Date: Nov 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Thank you

Thank you very much. I had deleted that.









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.