Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 11th, 2004, 09:44 AM
Registered User
 
Join Date: Jun 2003
Location: Kuala Lumpur, , Malaysia.
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



  #2 (permalink)  
Old May 11th, 2004, 12:28 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Indianapolis, IN, USA.
Posts: 124
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Has this worked for anyone else?

XUMUSKIEFAN
Wrox Moderator
  #3 (permalink)  
Old May 12th, 2004, 10:28 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
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
  #4 (permalink)  
Old October 20th, 2004, 11:25 PM
Registered User
 
Join Date: Oct 2004
Location: , , .
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:12 AM.


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