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 September 22nd, 2009, 06:01 PM
Registered User
 
Join Date: Sep 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with starting on master pages chapter 6

I've followed everything so far (I think!) and when I add the master page in chapter 6, page 199 I don't get the same code as shown in the book, which then renders the later class code for checking the page title inoperable

The book shows the content <%@ Page ..... title="Untitled Page" %>
and I guess this gives the page it's default title, but my code shows:
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage/MasterPage.master"
AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

There is no title section added automatically, should it be as show in the book?

Any help much appreciated,
Mark
 
Old September 23rd, 2009, 01:59 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Mark,

Check out the errata for the book: http://www.wrox.com/WileyCDA/WroxTit...Cd-ERRATA.html

This is a change introduced by Service Pack 1, released after the book was published. An empty string is now the new default page title instead of Untitled Page.

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!
 
Old September 23rd, 2009, 04:13 AM
Registered User
 
Join Date: Sep 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Errata found!

Many thanks for the reply.
I actually found the errata notes about 5 minutes after posting my message!
I was convinced I was doing something wrong but then realised it must be something to do with the dev environment or a setting that I couldn't find.

I kept restarting chapter 6 from scratch and got the same problem every time, my only minor complaint perhaps is that chapter 6 is a bit long, or has too much content to be able to roll back your code once the master page/base page data is applied - or maybe I am too fussy!!!

Great book by the way!

Mark
 
Old September 23rd, 2009, 07:16 AM
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,

What would there be to rollback (other than the issue with the title)? I am currently working in the 4.0 version of the book, so all feedback on improvement is welcome...

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 29th, 2009, 03:27 PM
Registered User
 
Join Date: Sep 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Roll back

Sorry Imar, what I mean by roll back is that once the master page has been applied to the default.aspx or any other page, you can't undo it (at least I don't think you can?)
It's not a problem with the book!

Mark
 
Old September 29th, 2009, 06:45 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Yeah, that's correct. It's more an either / or scenario: either you choose a Master page or you don't.

You could remove the placeholders and manually copy content from a standard page into your original page Or, as explained in the book in reversed order, copy the contents, delete the page, create a new one without a master and paste the content.

But why would you want to switch?

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
Master pages westannex ASP.NET 3.5 Basics 4 March 29th, 2009 07:48 AM
Master Pages micptpuser ASP.NET 2.0 Basics 6 January 8th, 2009 04:50 AM
Master Pages Jayahar ASP.NET 3.5 Basics 1 September 2nd, 2008 04:20 PM
Master Pages, Content Pages and CSS carliviris Visual Studio 2005 0 January 8th, 2008 05:56 PM
Master pages wunnavabk ASP.NET 2.0 Professional 1 June 25th, 2007 07:09 AM





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