B
Badass Scotsman
Hello,
I would like to display the current directory which an ASPX file sits
within, and display the result on page.
For example:
www.test.com/hello/test.aspx would return:
www.test.com/hello
And
www.test.com/hello/goodbye/test.aspx would return:
www.test.com/hello/goodbye
Also
www.test.com/hello/goodbye/seeyousoon/hi.aspx would return:
www.test.com/hello/goodbye/seeyousoon
I have tried lots, Request.URL, Request.PathInfo, Request.Path etc etc, none
of them work as they all want to return the FileName too
Gary.
I would like to display the current directory which an ASPX file sits
within, and display the result on page.
For example:
www.test.com/hello/test.aspx would return:
www.test.com/hello
And
www.test.com/hello/goodbye/test.aspx would return:
www.test.com/hello/goodbye
Also
www.test.com/hello/goodbye/seeyousoon/hi.aspx would return:
www.test.com/hello/goodbye/seeyousoon
I have tried lots, Request.URL, Request.PathInfo, Request.Path etc etc, none
of them work as they all want to return the FileName too
Gary.