Wrox Programmer Forums
|
BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio
This is the forum to discuss the Wrox book ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solution by Vincent Varallo; ISBN: 9780470396865
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 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 October 11th, 2010, 09:46 PM
Registered User
 
Join Date: Sep 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy BasePage (Chap 4 pg 98)

I made it to Page 98 of chap 4 and I am having problems with getting the MenuTab to work.

protected void Page_Load(object sender, EventArgs e)
{
ENTUserAccountEO currentUser = ((BasePage)Page).CurrentUser;
//Set the top menu properties
MenuTabs1.MenuItems = Globals.GetMenuItems(this.Cache);
MenuTabs1.RootPath = BasePage.RootPath(Context);
MenuTabs1.CurrentMenuItemName = ((BasePage)Page).MenuItemName();
MenuTabs1.Roles = Globals.GetRoles(this.Cache);
}

The error says there is no reference to MenuTabs1, BasePage, or Globals.
The code is located in the code file "PaidTimeOff.Master.cs".

What must I do to fix error?

Last edited by NetWorld; October 14th, 2010 at 01:55 PM.. Reason: simplified
 
Old November 25th, 2010, 02:39 PM
Registered User
 
Join Date: Nov 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I copied the code from the downloaded code into the file instead of typing the code from the book. It worked for me, try it.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chap 15 pg 532 tomche BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 10 April 2nd, 2010 03:37 PM
Chap 1 pg 48 OpenStream not referencing tomche BOOK: Professional ASP.NET 3.5 : in C# and VB ISBN: 978-0-470-18757-9 3 September 22nd, 2009 11:58 AM
return *this - Chap 8 pg 418 proslambano BOOK: Ivor Horton's Beginning Visual C++ 2005 0 March 10th, 2007 01:19 PM
Typo on pg.98 nguyendh BOOK: Ivor Horton's Beginning Visual C++ 2005 0 June 25th, 2006 03:10 AM





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