Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 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 December 30th, 2010, 06:35 AM
Authorized User
 
Join Date: Dec 2010
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 17 Page 609: $safeitemname$ issue?

When I try to debug in Chapter 17, page 609, step 3-5, for some reason it creates a new MyBasePage.aspx, and it gives the following error:

Code:
	1	'$safeitemname$' is not a valid value for attribute 'inherits'.	C:\BegASPNET\WebSite2-0\MyBasePage.aspx	1
I'm not sure if it's supposed to be creating a new page or not when it debugs, but I can't seem to continue the exercise. I'm not sure what's going on here? I tried the to uncheck the box for disabled Script Debugging in internet explorer per the suggestion (despite the fact that I didn't get the message in 17-8, likely because it didn't get to that point due to the error), and I still get the $safeitemname$ error.

Any suggestions?
 
Old December 30th, 2010, 06:44 AM
Authorized User
 
Join Date: Dec 2010
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Allright, nevermind. It's late and I'm a little tired so my decision making process isn't perfect.

I looked at the source code folder and compared it to my folder. For some reason I have a "MyBasePage.aspx" in my folder and I"m not supposed to. I assume that I accidently created it from the MyBasePage Template at some point and forgot to name/delete it for some exercise. The only thing that I don't understand is that the MyBasePage.aspx that is in my folder inhertis from "$safeitemname$", but if I create a brand new MyBasePage.aspx and look at the markup, it's default value for inherits is "MyBasePage". I have no idea where the MyBasePage that inherits from $safeitemname$ came from, but however it got there, I deleted it to match the source project, and you can ignore this error.

Last edited by AlexGrab; December 30th, 2010 at 06:46 AM..
 
Old December 31st, 2010, 06:06 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Could this be the page you created to build the template? In the exercise that shows you how to create your own template, you modify the page and code behind to this safeitemname placeholder. This is then replaced with a proper name when you create a new page. Maybe you just forgot to delete that file again at the end of the exercise?

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
Chapter 17 Page 608 Try It out - Debugging your application ceboc BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 November 24th, 2009 12:46 PM
Chap 17, page 609, error -- stumped HartfordDeveloper BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 December 8th, 2005 11:52 PM
DataGrid Updates BLANK PAGE (Chapter 17) happyhorseygal BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 April 8th, 2004 01:11 PM
data grid in chapter 17, page 708 gcpeters BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 January 16th, 2004 01:48 AM





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