p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 (http://p2p.wrox.com/forumdisplay.php?f=264)
-   -   <asp:Image /> & hspace (http://p2p.wrox.com/showthread.php?t=44764)

Poltroon July 3rd, 2006 08:01 AM

<asp:Image /> & hspace
In chapter 2 page 31 in the master page code there is an asp:Image element containing a hspace attribute. VS2005 is telling me that this is a validation failure as hspace isn't an attribute of asp:Image.

I can't find this bit of code in the downloaded solution, so it may be removed later in the book.

Can anyone confirm that this code is wrong, or explain it to this novice.


englere July 5th, 2006 02:53 PM

hspace is an older attibute not supported in XHTML:


I also see this in WelcomeBox.aspx, for imgGlass. It would be wise to factor that out. But most of us will use our own custom WelcomeBox, anyway.

By the way, anytime the code download doesn't agree with the book, you should understand that the code download is newer and it may have fixes or enhancements that don't show up in the text. It's easy to update a zip file, but harder to update a physical book :-)


Dave R April 23rd, 2014 04:51 AM

hspace is an attribute for HTML img element. It is present in the book and also in the downloadable code. My best guess is the book's author intended to have the ASP image control get this attribute when it renders as HTML img at run time.

All times are GMT -4. The time now is 07:16 PM.

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