Request.Url - Path Only
Hi,
Does any know how to get the path only from Request.Url ?
Thanx
John
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
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/
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/