Request.Url - Path Only

Request.Url - Path Only

am 09.04.2008 00:37:18 von John Devlon

Hi,

Does any know how to get the path only from Request.Url ?

Thanx

John

Re: Request.Url - Path Only

am 09.04.2008 00:53:32 von joe

Request.Url.Path ?

"John Devlon" wrote in message
news:op.t9bc4gs595o8pp@laptoptim.wag325n...
>
>
> Hi,
>
> Does any know how to get the path only from Request.Url ?
>
> Thanx
>
> John

Re: Request.Url - Path Only

am 09.04.2008 01:14:27 von 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" wrote in message
> 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: Request.Url - Path Only

am 09.04.2008 03:25:31 von nomailreplies

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" wrote in message news:op.t9bepkdt95o8pp@laptoptim.wag325n...
>
> 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" wrote in message
>> 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/