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 September 16th, 2016, 05:10 PM
Registered User
 
Join Date: Aug 2016
Posts: 6
Thanks: 0
Thanked 4 Times in 3 Posts
Default Confusion in chapter 7 about .aspx extension in the sitemap

Hi Imar..
Thanks for this great book. it's helping me a lot to understand core ASP.NET programming in C#.
There are some few aspects that's not clear to me. As at the time of writing this, i'm on page 252. where you instructed for us to add folders and web forms using the BasePage template. After doing all that and adding the title in each new page and save, if i try to navigate to a particular page it brings an error. going back to the sitemap on page 245, you didn't add the .aspx extension though later in the chapter you introduced the concept of FriendlyUrls(extension-less Urls). i want to know if you already implemented the FriendlyUrls package on page 252 to the Site project before you introduced it later in the chapter.
Please know that when i added the .aspx extension in the sitemap all the pages worked perfectly. i know i still have to remove them when i get to the concept of FriendlyUrls(extension-less Urls).

Please reply
The Following User Says Thank You to zinedu5 For This Useful Post:
harvazad (October 8th, 2016)
 
Old September 17th, 2016, 05:34 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,

Are you using an ebook version of this book? My hard copy does have the .aspx extensions on page 245. However, it does have urls mistakenly end in a dot (.) so maybe when applying the errata to the ebook something went wrong. What do you see on page 245?

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!
 
Old September 17th, 2016, 08:46 PM
Registered User
 
Join Date: Aug 2016
Posts: 6
Thanks: 0
Thanked 4 Times in 3 Posts
Default Hello Imar

Hello Imar,
I'm using the hard copy of the book and no, it doesn't have the .aspx extension on page 245
 
Old September 18th, 2016, 12:01 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

You must have a reprint then where they have updated the errata, but incorrectly ;-)

On page 245 all URLs should have an aspx extension.

Hope this helps,

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!
The Following User Says Thank You to Imar For This Useful Post:
harvazad (October 8th, 2016)
 
Old September 21st, 2016, 12:51 PM
Registered User
 
Join Date: Sep 2016
Posts: 3
Thanks: 2
Thanked 1 Time in 1 Post
Default

Yep, I've just hit the same problem!
couldn't work out why I was getting broken links. But now all is ok!
Best wishes,
Mike
 
Old October 8th, 2016, 11:22 AM
Registered User
 
Join Date: Oct 2016
Posts: 7
Thanks: 5
Thanked 1 Time in 1 Post
Default

Interestingly when you add the .aspx extensions on page 245 and then install the friendly urls on page 252 the menus still work but the breadcrumbs functionality doesn't. I had to remove all .aspx extensions for the breadcrumbs functionality to work again.
The Following User Says Thank You to harvazad For This Useful Post:
Imar (October 8th, 2016)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2 Excercise- Q4 Confusion devanshj95 BOOK: Ivor Horton's Beginning Java, Java 7 Edition 1 April 26th, 2013 10:53 PM
Chapter 4 database confusion markjcorrigan BOOK: ASP.NET 4 24-Hour Trainer 6 April 21st, 2013 10:46 AM
Chapter 3, Exercise 5 confusion Calion BOOK Beginning Lua Programming ISBN: 978-0-470-06917-2 0 November 17th, 2010 01:14 AM
Chapter 3 Sitemap Path Control try it out Jeshon BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 January 27th, 2006 12:44 PM
chapter 3 sitemap try it out diango BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 January 16th, 2006 11:40 AM





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