Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Reading the pages URL


Message #1 by mildge@n... on Sun, 23 Feb 2003 02:36:39
Hello,

How would i read the pages URL and then get just part of the resulting 
string (in this case just the 'thisfolder' part?
eg
www.somedomain.com/thisfolder/


Thanks for any suggestions
Chris
Message #2 by "Paul Riley" <rilez@t...> on Sun, 23 Feb 2003 09:24:24 -0000
Use request.path and then use the substring method

Strtemp = request.path
Strpath = strtemp.substring(0,strtemp.lastindexof("/"))

That should work

-----Original Message-----
From: mildge@n... [mailto:mildge@n...] 
Sent: 23 February 2003 02:37
To: aspx_beginners
Subject: [aspx_beginners] Reading the pages URL


Hello,

How would i read the pages URL and then get just part of the resulting 
string (in this case just the 'thisfolder' part?
eg
www.somedomain.com/thisfolder/


Thanks for any suggestions
Chris


  Return to Index