Hi Justin,
I think this is a Service Pack 1 issue. Before SP1 (the RTM of VS 2008), new pages were titled "Untitled Page". Now, when you apply SP1, pages are titled "" by default. Your fix works, although you could also simply use an Or:
Code:
If Me.Title = "Untitled Page" Or String.IsNullOrEmpty(Me.Title) Then
Throw New Exception("Page title cannot be ""Untitled Page"" or an ampty string.")
End If
Hope this helps,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
Beginning ASP.NET 3.5 : in C# and VB,
ASP.NET 2.0 Instant Results and
Dreamweaver MX 2004
Want to be my colleague? Then check out this post.