How about something like this....

YouAreHere = Request.ServerVariables("URL")

ThisPage = Right(YouAreHere,Len(YouAreHere) - InstrRev(YouAreHere,"/"))

For example http://www.tknw.com/test is the same as 
http://www.tknw.com/test/default.asp

Soren






Moshe Tapnack <[EMAIL PROTECTED]>
12/22/2004 03:52 PM
Please respond to active-server-pages
 
        To:     [email protected]
        cc: 
        Subject:        [ASP] reading path folder as querystring?



Hi all
 
is it possible in ASP to access a part of the URL as a querystring?
 
example: www.site.com/folder
 
can the index.asp in the root of this site show a page that is based on 
the
"folder" parameter - instead of simply showing the index.asp file that 
sits
inside of "folder"?
 
another example: goto www.whois.sc now goto www.whois.sc/cnn.com 
obviously there isnt a folder for every single domain name within the
whois.sc site. so how do they access the URL as a parameter?
 
another exmple (i;m on a roll, don't stop me):
http://profiles.yahoo.com/tapnack 
 
can this sort of thing be done in ASP?
 
many thanks
Moshe


[Non-text portions of this message have been removed]




--------------------------------------------------------------------- 
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links



 




______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~-> 

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [email protected]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to