Url Referrer: scheme (VB.net) : URI URL « Request « ASP.Net






Url Referrer: scheme (VB.net)

<%@ Page Language=VB Debug=true %>
<script runat=server>
Sub Page_Load(ByVal Sender as Object, ByVal E as EventArgs)
    Dim TheRef As Uri 
    TheRef = Request.UrlReferrer
    lblMessage.Text = "You connected to this page " _
        & "from this page: " & TheRef.AbsolutePath _
        & "<BR>Using this protocol: " _
        & TheRef.Scheme
End Sub
</SCRIPT>
<HTML>
<HEAD>
<TITLE>Referrer Information</TITLE>
</HEAD>
<form runat="server">
<asp:label 
    id="lblMessage" 
    font-size="12pt"
    font-name="Tahoma"
    runat="server"
/>
</form>
</BODY>
</HTML>
           
       








Related examples in the same category

1.Url Referrer: your path (VB.net)
2.URL Encoding (VB.net)
3.Uri for current page (VB.net)