Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 by Chris Hart, John Kauffman, David Sussman, Chris Ullman; ISBN: 9780764588501
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 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 February 23rd, 2006, 01:29 PM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 12, Try It Out, p.454, bad TagPrefix

On page 455, Line 7. 'There appears on the first Register line (not greyed out)
<%@ Register TagPrefx="uc1" ... %>, in the book. This should not be TagPrefix="uc1" because it will conflict with the use of "uc1" on the next line.

I note that the compiler correctly makes this literal "wu" instead of what the book says, so this is a minor typo.

VV


 
Old February 23rd, 2006, 01:39 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Can you tells us what's on "the next line"?

If that line jas another <%@ Register declaration, it's no problem. It's not an error to set up multiple controls with the same Tax Prefix (asp:* controls do that all the time).

So, this would work fine:

<%@ Register Src="About.ascx" TagName="About" TagPrefix="uc1" %>
<%@ Register Src="Details.ascx" TagName="Details" TagPrefix="uc1" %>
<%@ Register Src="MainMenu.ascx" TagName="MainMenu" TagPrefix="uc1" %>

<uc1:About ID="About1" runat="server" />
<uc1:Details ID="Details1" runat="server" />
<uc1:MainMenu ID="MainMenu1" runat="server" />

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old February 23rd, 2006, 01:53 PM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar:
Yes, the next line is another Register statement but with a different TagName.
I stand corrected. I don't recall seeing a write-up explaining the details of
the Register statement in my learning experience. My next book after this one
willbe the Professional ASP.NET 2.0. Perhaps it's explained in more detail there.
Thanks.
VV


 
Old February 23rd, 2006, 02:39 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're welcome.

Fact is, it doesn't really matter what prefix you use. I usually prefix them with the company name, or an abbreviation of that....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: This Mess We're In by P.J. Harvey (Track 7 from the album: Stories From The City, Stories From The Sea) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM
Bad SQL in Try It Out in chapter 3 punch BOOK: Beginning SQL 1 August 18th, 2006 06:39 PM
Errors on Chapter 12 example(12.8) sonnie ASP.NET 2.0 Professional 2 June 7th, 2006 10:55 AM
Bad Codes from Chapter 3 and on, Please Help! GraphicArmy BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 15 May 3rd, 2004 05:07 AM
example in chapter 12 peterml JSP Basics 0 August 23rd, 2003 08:11 AM





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