
UrlReferrer | 337
HttpRequest
Class
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Message.Text &= "Protocol: " & myUri.Scheme & "<br/>"
Message.Text &= "Port: " & myUri.Port & "<br/>"
Message.Text &= "Host Name: " & myUri.Host & "<br/>"
End Sub
Notes
While the Uri class this property returns has methods as well as properties, you’re
more likely to use these methods (particularly the CheckHostName and Check-
SchemeName methods) when creating your own Uri resource from scratch, rather
than when receiving the Uri instance from the Url property.
A note on URIs: Uniform Resource Identifier (URI) (compare to Uniform
Resource Locator, or URL) is a more general version of URLs and URNs. In most
cases today, URI and URL are identical, although this may change as URNs are
used more frequently. For the purposes of the Url property, the terms carry the
same meaning.
UrlReferrer
uriObj = Request.UrlReferrer
Returns an instance of the Uri class containing properties that describe the URL
for the resource from which the user navigated to the current requested resource.
If the user did not navigate to the current resource (i.e., if the current resource is
accessed directly), the UrlReferrer property returns
Nothing.
Parameter
uriObj
An Object variable of type Uri.
Example
The example uses the Uri object that the UrlReferrer property returned in order