Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4.5 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4.5: in C# and VB by Imar Spaanjaars; ISBN: 978-1-118-31180-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4.5 : 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 January 6th, 2014, 07:18 PM
Registered User
 
Join Date: Jan 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch. 7 Navigation issuees with code

I am just posting 2 issues I had with this chapter, so that they may help someone else.

1. Once I added the navigation from page 267. I could not get my links to work. What I did wrong was that I put the default.aspx, logon.aspx and the folder About and Review under the Demo folder. These belong under the SITE folder. See page 229.

I somehow missed this up to this point. Once I moved the folders to the SITE. All was good.

2. I had issues with the page line in the .aspx files ... I was getting context errors. My program listed page .... inherts="Demos_Temporary" instead of inherits="Demos_About_Default" for the About/default.aspx.

I am not quite sure why, but it wants the Demos folder name, even though it is now at the root directory. - Perhaps, this will help someone else, with similar issues.
 
Old January 6th, 2014, 07:22 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Quote:
I had issues with the page line in the .aspx files ... I was getting context errors. My program listed page .... inherts="Demos_Temporary" instead of inherits="Demos_About_Default" for the About/default.aspx.
Sounds like your template wasn't set up correctly? The Temporary part should have been replaced with the actual name when you create a page based on the custom template.

Quote:
I am not quite sure why, but it wants the Demos folder name, even though it is now at the root directory. - Perhaps, this will help someone else, with similar issues.
This is because the class in the Code Behind isn't updated when you move files, and thus its name still reflects the initial folder you created the file in.

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
Ch 22 Navigation Framework gisdev BOOK: Professional Visual Studio 2010 3 January 10th, 2012 08:48 AM
Ch. 2 TestError Code Problem Nanette BOOK: Beginning Access 2003 VBA 1 May 5th, 2007 08:41 PM
ch 8 code is not working properly Dev_gh78 C# 1 August 4th, 2006 12:16 AM
Ch. 15 Add'l Code? gekkster99999 BOOK: Beginning ASP 3.0 0 February 1st, 2004 10:55 PM





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