Request.Url - Path Only
am 09.04.2008 00:37:18 von John DevlonHi,
Does any know how to get the path only from Request.Url ?
Thanx
John
Hi,
Does any know how to get the path only from Request.Url ?
Thanx
John
Request.Url.Path ?
"John Devlon"
news:op.t9bc4gs595o8pp@laptoptim.wag325n...
>
>
> Hi,
>
> Does any know how to get the path only from Request.Url ?
>
> Thanx
>
> John
Hi Joe...
I need Request.Url.AbsoluteUri without the filename...
Thanx
Op Wed, 09 Apr 2008 00:53:32 +0200 schreef Joe
> Request.Url.Path ?
>
> "John Devlon"
> news:op.t9bc4gs595o8pp@laptoptim.wag325n...
>>
>>
>> Hi,
>>
>> Does any know how to get the path only from Request.Url ?
>>
>> Thanx
>>
>> John
>
>
--
Gemaakt met Opera's revolutionaire e-mailprogramma:
http://www.opera.com/mail/
re:
!> I need Request.Url.AbsoluteUri without the filename...
Dim fullappname as string = Request.Url.Host
Dim MyUrl As Uri = Request.Url
Dim fullappnameProtocol As String = "The full URL and protocol for the application root is : " _
& Server.HtmlEncode(MyUrl.Scheme) & "://" & fullappname & Request.ApplicationPath & "/"
That code handles both http and https URLs.
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaƱol : http://asp.net.do/foros/
======================================
"John Devlon"
>
> Hi Joe...
>
> I need Request.Url.AbsoluteUri without the filename...
>
> Thanx
>
>
>
> Op Wed, 09 Apr 2008 00:53:32 +0200 schreef Joe
>
>> Request.Url.Path ?
>>
>> "John Devlon"
>> news:op.t9bc4gs595o8pp@laptoptim.wag325n...
>>>
>>>
>>> Hi,
>>>
>>> Does any know how to get the path only from Request.Url ?
>>>
>>> Thanx
>>>
>>> John
>>
>>
>
>
>
> --
> Gemaakt met Opera's revolutionaire e-mailprogramma: http://www.opera.com/mail/