Get Html Error Message()
<%@ Page Language="vb" EnableSessionState="false" %> <html> <head> <script runat="server"> Sub Page_Load() Try Server.Execute("DoesNotExist.aspx") Catch HttpEx As HttpException Message.Text = "ERROR:</br>" Message.Text &= "Http Error Message: " & _ HttpEx.GetHtmlErrorMessage() & "</br>" End Try End Sub </script> </head> <body> <asp:label id="Message" forecolor="red" runat="server"/> </body> </html>