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 May 11th, 2004, 09:44 AM
Registered User
 
Join Date: Jun 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default The solution hard coded "ThePhile"

I found the author make the solution hard coded for "ThePhile". If you want to put the solution in other folder than you need to change so many code inside.

For a simple url, the book used "/ThePhile/Image/DVDlogo.gif", why not use "../Image/DVDlogo.gif". :D



 
Old May 11th, 2004, 12:28 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Has this worked for anyone else?

XUMUSKIEFAN
Wrox Moderator
 
Old May 12th, 2004, 10:28 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The authors should have made it easier to specify the root folder of the application. They should have that path set up as a constant in one class, and then they should reference this everywhere they need to.

As it is now, they have many references to "ThePhile" in the pathname. It's even stored in some database tables this way! When you use a hosting company you have to remove "ThePhile" because you don't have a virtual directory with an inexpensive hosting company - your application gets installed under the root dir for your site.

Relative pathnames also work, but sometimes you need to know the full pathname.

Eric
 
Old October 20th, 2004, 11:25 PM
Registered User
 
Join Date: Oct 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Eric,

You are so good, I just want to say "Thank You!". I am sure every one in this forums will say these words to you !!

Kind Regards,

Charles
Quote:
quote:Originally posted by englere
 The authors should have made it easier to specify the root folder of the application. They should have that path set up as a constant in one class, and then they should reference this everywhere they need to.

As it is now, they have many references to "ThePhile" in the pathname. It's even stored in some database tables this way! When you use a hosting company you have to remove "ThePhile" because you don't have a virtual directory with an inexpensive hosting company - your application gets installed under the root dir for your site.

Relative pathnames also work, but sometimes you need to know the full pathname.

Eric





Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard coded paths pauliehaha Classic ASP Professional 8 February 6th, 2007 06:48 PM
Is coded needed on every page? rtr1900 SQL Language 1 March 1st, 2006 06:53 PM
Hard coded examples etrump BOOK: Professional Ajax ISBN: 978-0-471-77778-6 1 March 1st, 2006 02:10 PM
text comparison - changes color coded jringwald Javascript How-To 0 June 30th, 2003 08:37 AM





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