Request.Url - Path Only

Hi,

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

Thanx

John
John Devlon [ Mi, 09 April 2008 00:37 ] [ ID #1938570 ]

Re: Request.Url - Path Only

Request.Url.Path ?

"John Devlon" <johndevlon [at] hotmail.com> wrote in message
news:op.t9bc4gs595o8pp [at] laptoptim.wag325n...
>
>
> Hi,
>
> Does any know how to get the path only from Request.Url ?
>
> Thanx
>
> John
joe [ Mi, 09 April 2008 00:53 ] [ ID #1938571 ]

Re: Request.Url - Path Only

Hi Joe...

I need Request.Url.AbsoluteUri without the filename...

Thanx



Op Wed, 09 Apr 2008 00:53:32 +0200 schreef Joe <jbassking [at] noemail.noemail>:

> Request.Url.Path ?
>
> "John Devlon" <johndevlon [at] hotmail.com> wrote in message
> news:op.t9bc4gs595o8pp [at] 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/
John Devlon [ Mi, 09 April 2008 01:14 ] [ ID #1938573 ]

Re: Request.Url - Path Only

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" <johndevlon [at] hotmail.com> wrote in message news:op.t9bepkdt95o8pp [at] laptoptim.wag325n...
>
> Hi Joe...
>
> I need Request.Url.AbsoluteUri without the filename...
>
> Thanx
>
>
>
> Op Wed, 09 Apr 2008 00:53:32 +0200 schreef Joe <jbassking [at] noemail.noemail>:
>
>> Request.Url.Path ?
>>
>> "John Devlon" <johndevlon [at] hotmail.com> wrote in message
>> news:op.t9bc4gs595o8pp [at] 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/
nomailreplies [ Mi, 09 April 2008 03:25 ] [ ID #1938582 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » Request.Url - Path Only

Vorheriges Thema: Firefox not displaying popup correctly
Nächstes Thema: Dropdown menu hiding behind content