Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components 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 September 12th, 2008, 08:30 AM
Authorized User
Points: 483, Level: 7
Points: 483, Level: 7 Points: 483, Level: 7 Points: 483, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2007
Location: Edgewood, NY, USA.
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default trim with ListFolderContents

I have employees placing jpeg files in a specific folder, and I am then using ListFolderContents to simply display those images through the web browser. works like a charm... BUT.... if an employee places a file that has white spaces in the file names, an "X" shows in the broswer.

Can the TRIM variable remove the spaces from the file name before it displays it at the browser level. I am not looking to remove the spaces in the actual file, but just at the browser level?

can this be done??

  #2 (permalink)  
Old September 12th, 2008, 03:03 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

If you did get rid of the spaces, and if the filenames on the server still had the spaces in them, then the code would *never* work.

Anyway, the TRIM function (no way it is a "variable") only removes spaces at the ENDs of a string, never in the middle. REPLACE() could remove all spaces, but I still question if that is the right answer.

But the big question I have: What "ListFolderContents" component? A quick google finds at least 50 or 60 separate attempts to supply one. If you don't point us to a reference to what you are using, I doubt we can help.
 


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
How can i trim space using XSLT? Mitali XSLT 5 July 25th, 2008 03:15 PM
Trim MathLearner VB Databases Basics 2 May 16th, 2007 11:38 PM
How to trim strings ajit Javascript 4 June 20th, 2006 10:30 AM
String.trim() mrfox BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 1 January 8th, 2006 12:23 AM
Trim() NeoGeo ASP.NET 1.0 and 1.1 Basics 2 January 21st, 2004 11:19 PM



All times are GMT -4. The time now is 02:23 AM.


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