Get string format server string (VB.net) : Server Error « Server « ASP.Net






Get string format server string (VB.net)

<%@ Page Language="vb" %>
<html>
   <head>
      <title>Error event example</title>
      <script runat="server">
         Sub Page_Load()
            Dim x, y, overflow As Integer
            x = 1
            y = 0
            overflow = x / y
         End Sub
         Sub Page_Error()
            Response.Write(Server.GetLastError.ToString())
            Server.ClearError
         End Sub
      </script>
   </head>
<body>
   <asp:label id="Message" runat="server"/>
</body>
</html>
           
       








Related examples in the same category

1.Get last error and clear error stack trace (C#)
2.Examining the Last Error (VB.net)
3.Server.ClearError (VB.net)