View Single Post
  #2 (permalink)  
Old July 3rd, 2005, 02:52 AM
om_prakash om_prakash is offline
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

I think there is issue with
filename = filename.substring(filename.lastIndexOf("//"))

If you are using vbscript, then above statement is not correct.

One approach can be:
filename = split(filename,"/")
Response.Write filename(uBound(filename))
In above example, you need to check for empty string and uBound as well.

Om Prakash
Reply With Quote