Wrox Programmer Forums
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution 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 August 4th, 2003, 07:33 PM
Registered User
Join Date: Jul 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Namespace Hierarchy

Can someone please explain the Namespace Hierarchy diagram on page 25? Maybe I'm
slow, but I cant make any sense of it.

I understand Wrox.ThePhil namespace, but where does Wrox.WebModules come in? Are they peers?

Old August 6th, 2003, 09:56 PM
Registered User
Join Date: Aug 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

I have had difficulty understanding namespaces too, since this book is the first time I have really worked with them.

Basically, a namespace creates an "inheritance" hierarchy. So when you use "Accounts.Business" for example, the methods and properties belonging to that namespace are accessible to you.

I have experimented with the code quite a bit, and I got some insight struggling with the an invalid cast exception with authentication, only to find after trying using every namespace in every combination possible that I had not modified the web form generated code to initialize the base page before the rest of the page.

You may notice that sometimes, with regards to authentication using the namespace Wrox.WebModules.Accounts.Business, the namespace you specifically need does not work until you include a namespace higher up the hierarchy. I have encountered situations (maybe because I am tinkering with the code) where you have to include the namespace above it.

using Wrox.WebModules.Accounts;
using Wrox.WebModules.Accounts.Business;

I had to use both namespaces to traverse the namespace hierarchy in code and have access to the properties and methods needed.

I hope this helps.

Similar Threads
Thread Thread Starter Forum Replies Last Post
TREE / HIERARCHY pallone XSLT 3 June 13th, 2008 07:45 AM
Hierarchy Navigation asearle XSLT 0 September 28th, 2006 02:27 AM
flat to hierarchy wu4 XSLT 3 October 19th, 2005 03:36 PM
help with class hierarchy wu4 XSLT 0 October 17th, 2005 01:58 PM

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