Development ASP.Net Tutorial

<%@ Page Language="vb" EnableSessionState="false" %>


   
      Sub Page_Load()
         Try
            Session("foo") = "Foo"
         Catch HttpEx As HttpException
            myMessage.Text = "ERROR:
"
            myMessage.Text &= "Message: " & HttpEx.Message & "
"
            myMessage.Text &= "Target Site: " & HttpEx.TargetSite.Name & "
"
         End Try
      End Sub