Mega Code Archive

 
Categories / ASP.Net / Development
 

Indicate the Help link for Http Exception

<%@ Page Language="vb" %> <html> <head>    <script runat="server">       Sub Page_Load()          Try             Dim myHttpEx As _                New HttpException("Threw an exception from Page_Load")             myHttpEx.HelpLink = "http://www.rntsoft.com"             Throw myHttpEx          Catch HttpEx As HttpException             Message.Text = "ERROR:</br>"             Message.Text &= "Message: " & HttpEx.Message & "</br>"             Message.Text &= "Help Link: " & HttpEx.HelpLink & "</br>"          End Try       End Sub    </script> </head> <body>    <asp:label id="Message" forecolor="red" runat="server"/> </body> </html>