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 September 2nd, 2004, 07:14 AM
Authorized User
 
Join Date: Aug 2004
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default Namespace vs. Folder Structure (Help Englere)

Hello Eric,

I have a problem regarding the namespace vs. folder structure. In the design stage of chapter 2 the authors talk about namespace and folder structure. I have some questions about this part.

1-Now we have a root namespace Wrox and beneath it we have ThePhile then Web then Controls then 2 other namespaces called User and Server. I found a folder called Controls which contains 2 user controls and 1 server control. But in the Folder structure’s figure I found that there are 2 sub folders under the Controls folder, Server and user folders, I don’t have them in the solution and I can’t find them by any way. Only I found the controls folder and beneath it the controls but no other sub folders. So what’s going on Eric?
2-I’m trying to understand the Application Structure so is there anyway that I can see all the namespaces that I have in the solution and their classes and other members?

3-I think that the navigation control and the XSLT issue is not important and we can replace it with a good user control. Am I right Eric?

Thanks Eric
Marenela
 
Old September 2nd, 2004, 07:19 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

1) Please read the doc file that came in the VB code download. He changed the folder names when he did the VB port. The C# version still has the original names.
2) I don't know of a handy way to view this, but I think you can do this with Visio if you have the Enterprise Architect version of VS 2003. I suppose somebody might have a utility like this, but I don't know about it.
3) That ugly Nav box has to go! It's non-standard in appearance, and it doesn't have any visual clue as you move your mouse over it. I don't know why the put it on the right when everyone else has menus on the left.

Eric
 
Old September 3rd, 2004, 01:15 PM
Authorized User
 
Join Date: Aug 2004
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello again,

 About the 'ugly Nav box' can I replace it with a good user control (as a menu) on the left side then drop it on every page of the website?


 
Old September 3rd, 2004, 06:22 PM
Authorized User
 
Join Date: Aug 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Groupmatch


Regarding a way of viewing all the files and sub files, try out a shareware software called UltraEdit (I found it at Tuocows) it is very handy allowing access to view and edit all folders sub folders and files.

Have you tried using the Object Browser tool is VS?

I also find the folder structure difficult to understand.
On viewing the Wrox\ThePhileVB download copy via Windows Explorer.

It contains ThePhileVB.vbproj ThePhileVB.sln and ThePhile.vbproj ThePhile.sln and PhilPage.vb and all associated files, folders and sub folders all contained within ThePhileVB folder. I have looked but as yet not found how to do it.


If you find out let me know.


Lynn



 
Old September 3rd, 2004, 09:46 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

>can I replace it with a good user control (as a menu) on the left side then
>drop it on every page of the website?

Yes, but it's a little harder than that. ThePhile uses the Flow layout, instead of the Grid layout. That means you should define a table in each page, and put the menu in the left-most column. Again, it gets more complicated because the header and trailer have to be considered, and the poll should be moved so it's under the menu.

And the menu itself needs to have some styles set up, and a cool little mouse-over event in Javascript.

I'll get it done one day - maybe this week-end if I get some free time. I've always got too many things to do :-(

Eric
 
Old September 4th, 2004, 03:18 AM
Authorized User
 
Join Date: Aug 2004
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Eric,

 God Help you.
Thanks,
Marenela

 
Old September 5th, 2004, 10:34 AM
Authorized User
 
Join Date: Aug 2004
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Eric,Lynn,

 Lynn I'm in the same problem (but in C# Edition) I find that there is a 20 project in the solution named thePhile and when I navigate to the to the ThePhile folder I find many others projects in the module folder and these porjects are not part of the solution. do u figure out anything?
Thanks
Marenela

 
Old September 5th, 2004, 12:40 PM
Authorized User
 
Join Date: Aug 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Marenela

I had too many solutions in my download code ThePhileVB .sln and ThePhile.sln , hence 113 default errors.

I questioned it at first but as I am far from experienced I accepted the code as it stood. I made so many attempts to create the same file structure I was extremely discouraged and frustrated. I achieved it in the end but as you might imagine it caused more problems.

After reading a message from Eric

I deleted ThePhile.sln in the download but I was very wary in case it caused extra problems. But it was ok.

I have since come to realise that my download code was wrong so I started my project yet again from scratch. I now have a distrust in the download code.

For example I found the Navigator.vb file located in Controls\Server has a problem.

Originally:

With xslt
.Load(Context.Server.MapPath(myTransformFilePath))
.Transform(xDoc, Nothing, writer)

It should read

 With xslt
.Load(Context.Server.MapPath(myTransformFilePath))
.Transform(xDoc, Nothing, writer, nothing)

Instead of expecting the reader to waste valuable time scouring Forums and reading and re- reading that lengthy Wrox Website Programming Book Notes document, it would be far easier for the author to amend the downloaded code as and when an anomalies are brought to attention (that seems the logical thing to do). I am sure they would gain a lot more respect and loyalty for the books. Instead they choose to issue a variety of amendments, in document format.

I am sure most people would prefer and appreciate updated code, rather than struggle to create a project with incorrect syntax and coding, when they could utilise precious hours furthering the application.



Lynn
 
Old September 5th, 2004, 12:50 PM
Authorized User
 
Join Date: Aug 2004
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Lynn,

 You are right. But my problem here is that I can't understand how this solution is structured??????? :(. I found that there are 20 projects (C# Version) in the solution and when I navigate to a folder like Controls (in VS.NET Solution Explorer Window) I found only 2 controls the header and the footer but when I navigate to the folder through Windows Explorer I found that it's a complete C# Project????????????????? why I don't see this project in thePhile Solution? why when I click show all files I see the name of the project and while folder icon besides it???????
If you had a similar problem please tell me
Thanks
marenela

 
Old September 7th, 2004, 03:59 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

User controls are not supposed to be part of a project or solution. They're dynamically compiled at runtime (via "src=").

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
Question for Chapter2 NameSpace and Fold structure lovehorse BOOK: ASP.NET Website Programming Problem-Design-Solution 1 October 16th, 2006 08:21 AM
Still confused Folder structure eureka BOOK: ASP.NET Website Programming Problem-Design-Solution 5 September 14th, 2004 11:37 PM
C# folder and project structure organicglenn BOOK: ASP.NET Website Programming Problem-Design-Solution 3 September 7th, 2004 09:47 PM
thePhile (VB) file folder structure... jaspe BOOK: ASP.NET Website Programming Problem-Design-Solution 1 September 1st, 2004 08:24 PM





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