Development ASP.Net

<%@ Page Language="vb" %>


   
      Sub Page_Load()
         Try
            Throw New HttpException("Threw an error from Page_Load", 100)
         Catch HttpEx As HttpException
            Message.Text = "ERROR:
"
            Message.Text &= "Message: " & HttpEx.Message & "
"
            Message.Text &= "Error Code: " & HttpEx.ErrorCode & "
"
         End Try
      End Sub