Development ASP.Net Tutorial

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


   
      Sub Page_Load()
         Try
            Session("foo") = "Foo"
         Catch HttpEx As HttpException
            Message.Text = "ERROR:
"
            Message.Text &= "Message: " & HttpEx.Message & "
"
            Message.Text &= "Help Link: " & HttpEx.HelpLink & "
"
            Message.Text &= "Error Code: " & HttpEx.ErrorCode & "
"
            Message.Text &= "Source: " & HttpEx.Source & "
"
            Message.Text &= "Stack Trace: " & HttpEx.StackTrace & "
"
            Message.Text &= "Target Site: " & HttpEx.TargetSite.ToString() & "
"
            Message.Text &= "Http Error Message: " & HttpEx.GetHtmlErrorMessage() & "
"
            Message.Text &= "Http Error Code: " & HttpEx.GetHttpCode() & "
"
            Message.Text &= "String: " & HttpEx.ToString() & "
"
         End Try
      End Sub