Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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?
Reply With Quote
  #2 (permalink)  
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..
Reply With Quote
  #3 (permalink)  
Old December 31st, 2010, 06:06 AM
Imar's Avatar
Wrox Author
Points: 72,038, Level: 100
Points: 72,038, Level: 100 Points: 72,038, Level: 100 Points: 72,038, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,080
Thanks: 80
Thanked 1,587 Times in 1,563 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!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 10:21 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.