 |
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
|
|
|
|
|

February 23rd, 2006, 01:29 PM
|
|
Friend of Wrox
|
|
Join Date: Apr 2005
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

February 23rd, 2006, 01:39 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|

February 23rd, 2006, 01:53 PM
|
|
Friend of Wrox
|
|
Join Date: Apr 2005
Posts: 190
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

February 23rd, 2006, 02:39 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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?
|
|
 |