Hello,
While trying the sample code in
VB on page 210-211 i get an error when i run in the IDE. The program breaks on the line after the End IF right after the throw new Exception line. The error is "exception was unhandled by user code". I cant make the page launch with the custom error that is being shown on page 212. I have set the login page as the startup page. Is there an IDE setting i'm missing. Please help.
Thanks.
--------------------------------------------------
Imports Microsoft.VisualBasic
Public Class Basepage
Inherits System.Web.UI.Page
Public Sub Page_PreRender(sender As Object, e As System.EventArgs) Handles Me.PreRender
If Me.Title = "Untitled Page" Or String.IsNullOrEmpty(Me.Title) Then
Throw New Exception("YOU MUST ENTER A TITLE")
'program breaks right after the above line
End If
End Sub
End Class
---------------------------
Partial Class login
Inherits Basepage
End Class