Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 4.5.1 > BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
|
BOOK: Beginning ASP.NET 4.5.1 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5.1: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-84677-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5.1 : in C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 19th, 2016, 05:55 PM
Authorized User
 
Join Date: Apr 2016
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default Ch 6 Try It Out-Creating a Base Page: Untitled String or empty string error.

Hi, I completed all 7 steps (p209-211), but still get the 'Page title cannot be "Untitled Page" or an empty string.' error for any page I try to open. Verified step 6 updated correctly. For step 7, I manually added the Title="name of the web page" to the page directive for all web pages in the Demos folder and Default.aspx as well (not FrontEnd.master). Still got the error. Decided to add the same text to the <title></title> tags for each page as well, including the FrontEnd.master page (wasn't sure whether to touch the master page? guidance?). Still got the error. Added a Title="Planet Wrox" to the master page directive, and got a build error. Removed it, and I'm now back to Untitled Page empty string error. Using VS Community 2013. Any help/guidance would be greatly appreciated! -Thanks!!
 
Old April 20th, 2016, 09:27 PM
Authorized User
 
Join Date: Apr 2016
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default Update: Figured it out

Boy do I feel dumb! Left a space followed by a semi-colon after the parentheses of the if statement in the Page_PreRender() event handler, in BasePage.cs. Missed it each time I looked at it because I'm always changing the size (right side) of the document window. All web pages now open without error!
 
Old April 22nd, 2016, 05:31 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Great, glad to hear you found the solution.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
empty string Vince_421 VB Databases Basics 2 October 29th, 2008 03:24 PM
isNot nothing vs. string.empty julianfraser BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 June 8th, 2008 02:00 PM
Is String.Empty spinout ASP.NET 2.0 Basics 6 July 10th, 2007 05:55 AM
Data base connection string needed pramos.21d ADO.NET 3 March 8th, 2005 01:21 PM
Checking for empty string richw32001 General .NET 1 August 8th, 2004 01:37 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.